/* =========================================================
   REST DRIVE
   AUTHENTICATION / REGISTRATION
========================================================= */


/* =========================================================
   PAGE
========================================================= */

.auth-page {
    min-height: 100vh;

    display: flex;
    justify-content: center;
    align-items: flex-start;

    padding: 105px 18px 60px;

    background:
        radial-gradient(
            circle at 8% 8%,
            rgba(0, 91, 170, 0.08),
            transparent 28%
        ),
        radial-gradient(
            circle at 92% 85%,
            rgba(245, 185, 27, 0.10),
            transparent 30%
        ),
        #f5f6f8;
}


/* =========================================================
   MAIN WRAPPER
========================================================= */

.auth-wrapper {
    width: 100%;
    max-width: 820px;
}


/* =========================================================
   MAIN CARD
========================================================= */

.auth-card {
    width: 100%;

    background: #ffffff;

    border: 1px solid #e7e8eb;

    border-radius: 22px;

    padding: 36px 24px 30px;

    box-shadow:
        0 18px 55px rgba(0, 0, 0, 0.08);
}


/* =========================================================
   CUSTOMER REGISTRATION CARD
========================================================= */

.customer-register-card {
    max-width: 820px;
}


/* =========================================================
   LOGO
========================================================= */

.auth-logo {
    display: flex;

    justify-content: center;

    align-items: center;

    width: 100%;

    margin-bottom: 22px;
}

.auth-logo img {
    display: block;

    width: 82px;

    height: 82px;

    object-fit: contain;
}


/* =========================================================
   PAGE HEADING
========================================================= */

.auth-heading {
    text-align: center;

    margin-bottom: 36px;
}

.auth-heading .eyebrow {
    display: block;

    margin-bottom: 9px;

    color: #c58d00;

    font-size: 11px;

    font-weight: 900;

    letter-spacing: 2.2px;

    text-transform: uppercase;
}

.auth-heading h1 {
    margin: 0 0 10px;

    color: #101010;

    font-size: clamp(30px, 6vw, 42px);

    line-height: 1.08;

    letter-spacing: -1.5px;

    font-weight: 800;
}

.auth-heading p {
    max-width: 560px;

    margin: 0 auto;

    color: #73777d;

    font-size: 14px;

    line-height: 1.6;
}


/* =========================================================
   FORM
========================================================= */

.auth-form {
    width: 100%;
}


/* =========================================================
   SECTION TITLE
========================================================= */

.form-section-title {
    display: flex;

    align-items: center;

    width: 100%;

    margin-top: 34px;

    margin-bottom: 19px;

    color: #151515;

    font-size: 14px;

    font-weight: 800;

    letter-spacing: 0.1px;

    text-transform: uppercase;
}


/*
   Small gold line before section title
*/

.form-section-title::before {
    content: "";

    width: 4px;

    height: 18px;

    margin-right: 10px;

    border-radius: 5px;

    background: #f5b91b;
}


/*
   Horizontal line after section title
*/

.form-section-title::after {
    content: "";

    flex: 1;

    height: 1px;

    margin-left: 14px;

    background: #e9eaec;
}


/* =========================================================
   FORM GRID
========================================================= */

.form-grid {
    display: grid;

    grid-template-columns: 1fr;

    gap: 18px;
}


/* =========================================================
   FORM GROUP
========================================================= */

.form-group {
    display: flex;

    flex-direction: column;

    gap: 7px;

    min-width: 0;
}


/* =========================================================
   LABEL
========================================================= */

.form-group label {
    color: #30343a;

    font-size: 13px;

    font-weight: 700;

    line-height: 1.3;
}


/* =========================================================
   INPUT / SELECT / TEXTAREA
========================================================= */

.form-group input,
.form-group select,
.form-group textarea {

    width: 100%;

    box-sizing: border-box;

    border: 1px solid #dfe2e6;

    border-radius: 10px;

    background: #ffffff;

    color: #17191c;

    font-family: inherit;

    font-size: 14px;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}


/* =========================================================
   INPUTS
========================================================= */

.form-group input,
.form-group select {

    height: 50px;

    padding: 0 14px;
}


/* =========================================================
   TEXTAREA
========================================================= */

.form-group textarea {

    min-height: 105px;

    padding: 13px 14px;

    resize: vertical;

    line-height: 1.5;
}


/* =========================================================
   PLACEHOLDER
========================================================= */

.form-group input::placeholder,
.form-group textarea::placeholder {

    color: #a3a7ad;

    opacity: 1;
}


/* =========================================================
   SELECT
========================================================= */

.form-group select {

    cursor: pointer;

    appearance: auto;
}


/* =========================================================
   FOCUS
========================================================= */

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {

    border-color: #e2ad1a;

    background: #fffdf8;

    box-shadow:
        0 0 0 3px rgba(245, 185, 27, 0.13);
}


/* =========================================================
   HOVER
========================================================= */

.form-group input:hover,
.form-group select:hover,
.form-group textarea:hover {

    border-color: #c9cdd2;
}


/* =========================================================
   HELP TEXT
========================================================= */

.form-group small {

    margin-top: -1px;

    color: #858a91;

    font-size: 11px;

    line-height: 1.4;
}


/* =========================================================
   FULL WIDTH
========================================================= */

.full-width {

    grid-column: 1 / -1;
}


/* =========================================================
   ERROR
========================================================= */

.form-alert {

    display: flex;

    align-items: center;

    margin-bottom: 22px;

    padding: 13px 15px;

    border-radius: 10px;

    font-size: 13px;

    line-height: 1.5;
}

.form-alert.error {

    background: #fff4f4;

    border: 1px solid #f1cccc;

    color: #b42323;
}


/* =========================================================
   SUBMIT BUTTON
========================================================= */

.form-submit {

    width: 100%;

    min-height: 56px;

    margin-top: 32px;

    border: 0;

    border-radius: 10px;

    background: #f5b91b;

    color: #111111;

    font-family: inherit;

    font-size: 14px;

    font-weight: 800;

    cursor: pointer;

    box-shadow:
        0 8px 20px rgba(245, 185, 27, 0.20);

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease,
        background-color 0.18s ease;
}


/* Button hover */

.form-submit:hover {

    background: #f8c633;

    transform: translateY(-1px);

    box-shadow:
        0 11px 25px rgba(245, 185, 27, 0.27);
}


/* Button active */

.form-submit:active {

    transform: translateY(0);

    box-shadow:
        0 5px 12px rgba(245, 185, 27, 0.18);
}


/* =========================================================
   BUTTON ARROW
========================================================= */

.form-submit .arrow {

    display: inline-block;

    margin-left: 9px;

    font-size: 18px;

    line-height: 0;

    vertical-align: -1px;

    transition: transform 0.18s ease;
}

.form-submit:hover .arrow {

    transform: translateX(4px);
}


/* =========================================================
   FOOTER
========================================================= */

.auth-footer {

    margin-top: 28px;

    padding-top: 22px;

    border-top: 1px solid #ececef;

    text-align: center;
}

.auth-footer p {

    margin: 0;

    color: #777c82;

    font-size: 13px;

    line-height: 1.5;
}

.auth-footer a {

    color: #b57f00;

    font-weight: 800;

    text-decoration: none;

    transition: color 0.2s ease;
}

.auth-footer a:hover {

    color: #111111;

    text-decoration: underline;
}


/* =========================================================
   ROLE SELECTION
   register.php
========================================================= */

.role-options {

    display: flex;

    flex-direction: column;

    gap: 14px;
}

.role-card {

    display: flex;

    align-items: center;

    gap: 17px;

    padding: 20px;

    border: 1px solid #e5e7ea;

    border-radius: 14px;

    background: #ffffff;

    text-decoration: none;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.role-card:hover {

    transform: translateY(-3px);

    border-color: #f0b51b;

    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.08);
}

.role-icon {

    width: 54px;

    height: 54px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 13px;

    background: #fff4cc;

    font-size: 24px;
}

.role-icon.driver {

    background: #eaf3ff;
}

.role-content {

    min-width: 0;

    flex: 1;
}

.role-content h2 {

    margin: 0 0 5px;

    color: #111111;

    font-size: 18px;
}

.role-content p {

    margin: 0 0 8px;

    color: #70757b;

    font-size: 13px;

    line-height: 1.5;
}

.role-action {

    color: #b57f00;

    font-size: 12px;

    font-weight: 800;
}


/* =========================================================
   TABLET
========================================================= */

@media (min-width: 600px) {

    .auth-page {

        padding-left: 25px;

        padding-right: 25px;
    }

    .auth-card {

        padding: 42px;
    }

    .auth-logo img {

        width: 88px;

        height: 88px;
    }

    .form-grid {

        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* =========================================================
   DESKTOP
========================================================= */

@media (min-width: 900px) {

    .auth-page {

        padding-top: 110px;

        padding-bottom: 70px;
    }

    .auth-card {

        padding: 48px 54px 38px;

        border-radius: 22px;
    }

    .auth-heading {

        margin-bottom: 40px;
    }

    .form-grid {

        column-gap: 20px;

        row-gap: 19px;
    }
}


/* =========================================================
   SMALL PHONES
========================================================= */

@media (max-width: 380px) {

    .auth-page {

        padding: 88px 10px 35px;
    }

    .auth-card {

        padding: 28px 16px 25px;

        border-radius: 16px;
    }

    .auth-heading h1 {

        font-size: 28px;
    }

    .auth-heading p {

        font-size: 13px;
    }

    .form-section-title {

        font-size: 13px;
    }

    .form-group input,
    .form-group select {

        height: 48px;
    }
}