/*
|--------------------------------------------------------------------------
| RJA DELIVERY
| Customer Registration
|--------------------------------------------------------------------------
*/

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
    min-height: 100%;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f7fb;
    color: #1f2937;
}


/* ==========================================================
   PAGE
========================================================== */

.customer-register-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
}


/* ==========================================================
   CARD
========================================================== */

.customer-register-card {
    width: 100%;
    max-width: 520px;
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(15, 23, 42, 0.10);
    overflow: hidden;
}


/* ==========================================================
   HEADER
========================================================== */

.customer-register-header {
    padding: 28px 34px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.back-link {
    display: inline-flex;
    align-items: center;
    margin-bottom: 22px;
    color: #1261b5;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.back-link:hover {
    text-decoration: underline;
}

.register-logo {
    display: inline-flex;
    align-items: center;
    margin-bottom: 18px;
}

.register-logo img {
    display: block;
    width: auto;
    max-width: 190px;
    height: 54px;
    object-fit: contain;
}

.register-heading h1 {
    margin: 0 0 8px;
    color: #123f73;
    font-size: 28px;
    line-height: 1.25;
    font-weight: 700;
}

.register-heading p {
    margin: 0;
    color: #667085;
    font-size: 14px;
    line-height: 1.6;
}


/* ==========================================================
   FORM
========================================================== */

.customer-register-form {
    padding: 30px 34px 32px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #344054;
    font-size: 14px;
    font-weight: 600;
}

.form-group input {
    display: block;
    width: 100%;
    height: 48px;
    padding: 0 14px;
    border: 1px solid #d0d5dd;
    border-radius: 8px;
    outline: none;
    background: #ffffff;
    color: #101828;
    font-family: inherit;
    font-size: 14px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease;
}

.form-group input::placeholder {
    color: #98a2b3;
}

.form-group input:focus {
    border-color: #1261b5;
    box-shadow: 0 0 0 3px rgba(18, 97, 181, 0.12);
}


/* ==========================================================
   PASSWORD
========================================================== */

.password-field {
    position: relative;
}

.password-field input {
    padding-right: 100px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    border: 0;
    padding: 5px 4px;
    background: transparent;
    color: #1261b5;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

.password-toggle:hover {
    color: #0b4d91;
}


/* ==========================================================
   ALERT
========================================================== */

.register-alert {
    display: none;
    margin-bottom: 20px;
    padding: 12px 14px;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.5;
}

.register-alert.show {
    display: block;
}

.register-alert.error {
    border: 1px solid #fecaca;
    background: #fef2f2;
    color: #b42318;
}

.register-alert.success {
    border: 1px solid #bbf7d0;
    background: #f0fdf4;
    color: #15803d;
}


/* ==========================================================
   SUBMIT
========================================================== */

.register-submit {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin-top: 6px;
    border: 0;
    border-radius: 8px;
    background: #1261b5;
    color: #ffffff;
    font-family: inherit;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition:
        background 0.2s ease,
        transform 0.2s ease,
        box-shadow 0.2s ease;
}

.register-submit:hover {
    background: #0f56a3;
    box-shadow: 0 5px 14px rgba(18, 97, 181, 0.20);
}

.register-submit:active {
    transform: translateY(1px);
}

.register-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    box-shadow: none;
}

.button-loading {
    display: none;
}

.register-submit.loading .button-text {
    display: none;
}

.register-submit.loading .button-loading {
    display: inline;
}


/* ==========================================================
   LOGIN LINK
========================================================== */

.register-login-link {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 5px;
    margin-top: 24px;
    color: #667085;
    font-size: 13px;
    line-height: 1.5;
}

.register-login-link a {
    color: #1261b5;
    font-weight: 700;
    text-decoration: none;
}

.register-login-link a:hover {
    text-decoration: underline;
}


/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 600px) {
    .customer-register-page {
        align-items: flex-start;
        padding: 20px 14px;
    }

    .customer-register-card {
        border-radius: 12px;
    }

    .customer-register-header {
        padding: 24px 22px 20px;
    }

    .customer-register-form {
        padding: 24px 22px 26px;
    }

    .register-heading h1 {
        font-size: 24px;
    }

    .register-logo img {
        max-width: 170px;
        height: 48px;
    }
}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 400px) {
    .customer-register-page {
        padding: 12px 10px;
    }

    .customer-register-header {
        padding: 22px 18px 18px;
    }

    .customer-register-form {
        padding: 22px 18px 24px;
    }

    .register-heading h1 {
        font-size: 22px;
    }

    .register-heading p {
        font-size: 13px;
    }

    .form-group {
        margin-bottom: 17px;
    }

    .form-group input {
        height: 46px;
    }
}