@font-face {
    font-family: "Sour Gummy";
    src: url("../font/Sour_Gummy/SourGummy-VariableFont_wdth,wght.ttf") format("truetype");
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    outline: none;
    box-sizing: border-box;
    transition: all 0.2s ease;
    font-family: "Sour Gummy", sans-serif;
}

body {
    min-height: 100vh;
    overflow-x: hidden !important;
    width: 100vw;
    max-width: 100vw;
}

html {
    scroll-behavior: smooth;
}

button {
    cursor: pointer;
}

ul {
    list-style: none;
}

.login-page {
    background: #f1f7f8;
    color: #173042;
}

.login-shell {
    align-items: center;
    display: flex;
    justify-content: center;
    min-height: 100vh;
    padding: 32px;
}

.login-panel {
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(27, 61, 73, 0.14);
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    max-width: 980px;
    overflow: hidden;
    width: 100%;
}

.login-intro {
    background: #2C9ADF;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 560px;
    overflow: hidden;
    padding: 48px;
    position: relative;
}

.login-intro-content,
.login-intro-footer {
    position: relative;
    z-index: 1;
}

.login-mark {
    align-items: center;
    background: #fff;
    border-radius: 15px;
    color: #2C9ADF;
    display: inline-flex;
    font-size: 22px;
    font-weight: 700;
    height: 50px;
    justify-content: center;
    margin-bottom: 56px;
    width: 50px;
}

.login-kicker,
.login-welcome {
    color: #2C9ADF;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.login-kicker {
    color: rgba(255, 255, 255, 0.72);
    margin-bottom: 12px;
}

.login-intro h1 {
    font-size: 48px;
    line-height: 1.08;
    max-width: 300px;
}

.login-intro-text {
    color: rgba(255, 255, 255, 0.82);
    line-height: 1.7;
    margin-top: 22px;
    max-width: 290px;
}

.login-intro-footer {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
}

.login-orbit {
    border: 28px solid rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    height: 260px;
    position: absolute;
    width: 260px;
}

.login-orbit-top {
    right: -90px;
    top: -90px;
}

.login-orbit-bottom {
    bottom: -120px;
    height: 300px;
    left: -100px;
    width: 300px;
}

.login-form-area {
    padding: 64px 72px;
}

.login-form-content {
    margin: 0 auto;
    max-width: 410px;
}

.login-heading {
    margin-bottom: 34px;
}

.login-heading>a {
    color: #173042;
    display: block;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.15;
    margin-top: 8px;
}

.login-heading>p:last-child {
    color: #74858b;
    font-size: 15px;
    line-height: 1.6;
    margin-top: 12px;
}

.login-error {
    background: #fff2f1;
    border: 1px solid #f2c4c0;
    border-radius: 12px;
    color: #ad3c34;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 24px;
    padding: 14px 16px;
}

.login-form {
    display: grid;
    gap: 22px;
}

.login-field label {
    color: #314951;
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 9px;
}

.login-field input[type="email"],
.login-field input[type="password"],
.login-field input[type="text"] {
    background: #f7faf9;
    border: 1px solid #dbe6e5;
    border-radius: 11px;
    color: #173042;
    font: inherit;
    padding: 14px 16px;
    width: 100%;
}

.login-field input::placeholder {
    color: #9aabad;
}

.login-field input:focus {
    background: #fff;
    border-color: #2C9ADF;
    box-shadow: 0 0 0 4px rgba(22, 139, 131, 0.12);
}

.show-password {
    align-items: center;
    color: #718287 !important;
    cursor: pointer;
    display: inline-flex !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    gap: 8px;
    margin-top: 11px !important;
}

.show-password input {
    accent-color: #2C9ADF;
    height: 16px;
    width: 16px;
}

.login-form button {
    background: #2C9ADF;
    border: 0;
    border-radius: 11px;
    box-shadow: 0 10px 20px rgba(22, 139, 131, 0.2);
    color: #fff;
    font: inherit;
    font-weight: 700;
    padding: 15px 20px;
}

.login-form button:hover {
    background: #18547a;
    transform: translateY(-2px);
}

.recovery-panel {
    background: #fff;
    border-radius: 28px;
    box-shadow: 0 24px 70px rgba(27, 61, 73, 0.14);
    max-width: 520px;
    padding: 56px 64px;
    width: 100%;
}

.recovery-heading {
    margin-bottom: 32px;
}

.recovery-heading .login-mark {
    margin-bottom: 26px;
}

.recovery-heading h1 {
    color: #173042;
    font-size: 34px;
    line-height: 1.15;
    margin-top: 8px;
}

.recovery-heading p:last-child {
    color: #74858b;
    font-size: 15px;
    line-height: 1.6;
    margin-top: 12px;
}

.login-success {
    background: #edf9f5;
    border: 1px solid #bce5d4;
    border-radius: 12px;
    color: #217052;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 24px;
    padding: 14px 16px;
}

.recovery-link,
.recovery-back {
    color: #2C9ADF;
    display: block;
    font-size: 14px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.recovery-link {
    margin-top: 12px;
    text-align: right;
}

.recovery-back {
    margin-top: 28px;
    text-align: center;
}

.dashboard-page {
    background: #f4f7f6;
    color: #173042;
}

.dashboard-header,
.dashboard-main {
    margin: 0 auto;
    max-width: 1400px;
    width: calc(100% - 64px);
}

.dashboard-header {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    padding: 48px 0 30px;
}

.dashboard-header h1,
.dashboard-card h2 {
    color: #173042;
    line-height: 1.1;
}

.dashboard-header h1 {
    font-size: 42px;
    margin-top: 5px;
}

.dashboard-eyebrow {
    color: #168b83;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.dashboard-subtitle {
    color: #718287;
    margin-top: 10px;
}

.sender-name-form {
    display: grid;
    gap: 7px;
    margin: 16px 0 12px;
    max-width: 520px;
}

.sender-name-form label {
    color: #314951;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.sender-name-controls {
    display: flex;
    gap: 8px;
}

.sender-name-controls input {
    background: #fff;
    border: 1px solid #dbe6e5;
    border-radius: 8px;
    color: #173042;
    flex: 1;
    font: inherit;
    min-height: 42px;
    min-width: 0;
    padding: 9px 11px;
}

.sender-name-controls input:focus {
    border-color: #168b83;
    box-shadow: 0 0 0 3px rgba(22, 139, 131, 0.12);
    outline: 0;
}

.sender-name-controls button {
    background: #168b83;
    border: 0;
    border-radius: 8px;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    min-height: 42px;
    padding: 9px 14px;
    transition: background 160ms ease, transform 160ms ease;
}

.sender-name-controls button:hover {
    background: #11726b;
    transform: translateY(-1px);
}

.dashboard-logout,
.primary-button,
.payment-form button {
    background: #2C9ADF;
    border: 0;
    border-radius: 9px;
    color: #fff;
    font: inherit;
    font-weight: 700;
    padding: 12px 18px;
}

.dashboard-logout:hover,
.primary-button:hover,
.payment-form button:hover {
    background: #168b83;
    transform: translateY(-1px);
}

.dashboard-stats {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(2, 1fr);
    margin-bottom: 22px;
}

.dashboard-stats article,
.dashboard-card {
    background: #fff;
    border: 1px solid #e1eae8;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(27, 61, 73, 0.06);
}

.dashboard-stats article {
    padding: 22px;
}

.dashboard-stats span {
    color: #718287;
    display: block;
    font-size: 13px;
}

.dashboard-stats strong {
    display: block;
    font-size: 26px;
    margin-top: 8px;
}

.dashboard-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: 1.35fr 0.65fr;
    margin-bottom: 22px;
}

.dashboard-card {
    padding: 28px;
}

.dashboard-card h2 {
    font-size: 25px;
    margin-top: 6px;
}

.dashboard-form {
    display: grid;
    gap: 16px;
    margin-top: 24px;
}

.form-row {
    display: grid;
    gap: 14px;
    grid-template-columns: 1fr 1fr;
}

.dashboard-form label {
    color: #314951;
    display: grid;
    font-size: 13px;
    font-weight: 700;
    gap: 7px;
}

.dashboard-form input,
.dashboard-form select,
.contact-search,
.payment-form input,
.payment-form select,
textarea {
    background: #f7faf9;
    border: 1px solid #dbe6e5;
    border-radius: 8px;
    color: #173042;
    font: inherit;
    min-height: 42px;
    padding: 9px 11px;
}

.dashboard-form input:focus,
.dashboard-form select:focus,
.contact-search:focus,
.payment-form input:focus,
.payment-form select:focus,
textarea:focus {
    background: #fff;
    border-color: #168b83;
    box-shadow: 0 0 0 3px rgba(22, 139, 131, 0.12);
}

.dashboard-note-card {
    background: #2C9ADF;
    color: #d9e8e5;
}

.dashboard-note-card h2 {
    color: #fff;
    max-width: 260px;
}

.dashboard-note-card>p:not(.dashboard-eyebrow):not(.dashboard-note-small) {
    line-height: 1.7;
    margin-top: 20px;
}

.dashboard-note-small {
    color: #8eb8b1;
    font-size: 12px;
    margin-top: 34px;
}

.dashboard-alert {
    border-radius: 9px;
    margin-bottom: 18px;
    padding: 13px 16px;
}

.dashboard-alert-error {
    background: #fff2f1;
    border: 1px solid #f2c4c0;
    color: #ad3c34;
}

.dashboard-alert-success {
    background: #edf9f5;
    border: 1px solid #bce5d4;
    color: #217052;
}

.contacts-heading {
    align-items: center;
    display: flex;
    justify-content: space-between;
    margin-bottom: 22px;
}

.contact-search {
    min-width: 250px;
}

.contacts-tools {
    align-items: center;
    display: flex;
    gap: 10px;
}

.export-button {
    background: #168b83;
    border: 0;
    border-radius: 8px;
    color: #fff;
    font: inherit;
    font-size: 13px;
    font-weight: 700;
    min-height: 42px;
    padding: 9px 14px;
}

.export-button:hover {
    background: #126b65;
    transform: translateY(-1px);
}

.table-wrap {
    overflow-x: auto;
}

table {
    border-collapse: collapse;
    min-width: 1060px;
    width: 100%;
}

th {
    color: #718287;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-align: left;
    text-transform: uppercase;
}

th,
td {
    border-bottom: 1px solid #edf1f0;
    padding: 15px 10px;
    vertical-align: middle;
}

td {
    color: #314951;
    font-size: 14px;
}

td strong,
td small {
    display: block;
}

td small {
    color: #87969a;
    font-size: 12px;
    line-height: 1.6;
    margin-top: 3px;
}

.status {
    border-radius: 999px;
    display: inline-block;
    font-size: 12px;
    padding: 5px 9px;
    text-transform: capitalize;
}

.status-inscrit {
    background: #edf5ff;
    color: #28638f;
}

.status-en_cours {
    background: #fff5dc;
    color: #9b6a00;
}

.status-termine {
    background: #edf9f5;
    color: #217052;
}

.status-abandonne {
    background: #fff2f1;
    color: #ad3c34;
}

.payment-en_attente {
    color: #ad3c34;
}

.payment-partiel {
    color: #9b6a00;
}

.payment-paye {
    color: #217052;
}

.payment-form {
    align-items: center;
    display: flex;
    gap: 6px;
}

.payment-form input {
    width: 92px;
}

.payment-form select {
    width: 105px;
}

.payment-form button {
    border-radius: 7px;
    padding: 9px 13px;
}

.form-actions {
    align-items: center;
    display: flex;
    gap: 16px;
}

.cancel-link,
.edit-link {
    color: #168b83;
    font-size: 13px;
    font-weight: 700;
}

.row-actions {
    align-items: center;
    display: flex;
    gap: 8px;
}

.delete-button {
    background: transparent;
    border: 0;
    color: #ad3c34;
    font-size: 24px;
    padding: 5px 10px;
}

.empty-state {
    color: #718287;
    padding: 34px;
    text-align: center;
}

.admin-users-card {
    overflow: hidden;
}

.admin-table-wrap {
    overflow-x: auto;
}

.admin-users-table {
    border-collapse: collapse;
    min-width: 1500px;
    width: 100%;
}

.admin-users-table th,
.admin-users-table td {
    border-bottom: 1px solid #e1eae8;
    padding: 12px;
    text-align: left;
    vertical-align: top;
}

.admin-users-table th {
    color: #718287;
    font-size: 11px;
    text-transform: uppercase;
}

.admin-users-table input,
.admin-users-table select {
    min-width: 130px;
}

.admin-user-form {
    display: contents;
}

.admin-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.admin-save-button,
.admin-delete-button {
    border: 0;
    border-radius: 7px;
    color: #fff;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
    padding: 9px 12px;
}

.admin-save-button {
    background: #168b83;
}

.admin-delete-button {
    background: #ad3c34;
}

.admin-save-button:hover {
    background: #11726b;
}

.admin-delete-button:hover {
    background: #8d2f2a;
}

.admin-header-copy {
    max-width: 700px;
}

@media (max-width: 720px) {
    .login-shell {
        padding: 16px;
    }

    .login-panel {
        display: block;
    }

    .login-intro {
        min-height: auto;
        padding: 30px;
    }

    .login-mark {
        margin-bottom: 30px;
    }

    .login-intro h1 {
        font-size: 34px;
    }

    .login-intro-footer {
        margin-top: 42px;
    }

    .login-form-area {
        padding: 36px 24px 40px;
    }

    .login-heading>a {
        font-size: 29px;
    }

    .recovery-panel {
        padding: 36px 24px 40px;
    }

    .recovery-heading h1 {
        font-size: 29px;
    }

    .dashboard-header,
    .dashboard-main {
        width: calc(100% - 32px);
    }

    .dashboard-header {
        display: block;
        padding: 28px 0 22px;
    }

    .dashboard-header h1 {
        font-size: 32px;
    }

    .sender-name-form {
        max-width: none;
    }

    .sender-name-controls {
        align-items: stretch;
        flex-direction: column;
    }

    .dashboard-logout {
        margin-top: 18px;
    }

    .dashboard-stats {
        grid-template-columns: 1fr 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-card {
        padding: 20px;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .contacts-heading {
        align-items: stretch;
        display: grid;
        gap: 16px;
    }

    .contacts-tools {
        align-items: stretch;
        display: grid;
    }

    .contact-search {
        min-width: 0;
        width: 100%;
    }
}