/* ============================================
   Login page (profile-login.html) — scoped to .eg-auth
   login.css is shared with sign-up, so new styles live here.
   ============================================ */

body {
    height: auto;
    min-height: 100vh;
    padding: 24px 0;
}

.eg-auth {
    width: 100%;
    font-family: var(--pfamily, 'Poppins', sans-serif);
}

.eg-auth-card {
    display: flex;
    max-width: 980px;
    margin: 0 auto;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(46, 123, 11, 0.12), 0 4px 16px rgba(0, 0, 0, 0.06);
}

/* ---------- Left brand panel ---------- */
.eg-auth-brand {
    position: relative;
    flex: 0 0 42%;
    padding: 44px 40px;
    color: #fff;
    background: linear-gradient(150deg, #3d9a12 0%, #2e7b0b 55%, #1f5a06 100%);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.eg-auth-brand::before,
.eg-auth-brand::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    pointer-events: none;
}

.eg-auth-brand::before {
    width: 280px;
    height: 280px;
    top: -90px;
    right: -110px;
}

.eg-auth-brand::after {
    width: 200px;
    height: 200px;
    bottom: -70px;
    left: -60px;
}

.eg-auth-logo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 112px;
    height: 112px;
    background: #fff;
    border-radius: 50%;
    padding: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    position: relative;
    z-index: 1;
}

.eg-auth-logo img {
    max-width: 100%;
    height: auto;
}

.eg-auth-brand h3 {
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.35;
    margin: 28px 0 8px;
    position: relative;
    z-index: 1;
}

.eg-auth-brand > p {
    color: rgba(255, 255, 255, 0.85);
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 28px;
    position: relative;
    z-index: 1;
}

.eg-auth-perks {
    list-style: none;
    padding: 0;
    margin: auto 0 0;
    position: relative;
    z-index: 1;
}

.eg-auth-perks li {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    font-weight: 500;
    color: #fff;
    padding: 10px 0;
}

.eg-auth-perks li + li {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.eg-auth-perks i {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.15);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
}

/* ---------- Right form panel ---------- */
.eg-auth-form {
    flex: 1;
    padding: 48px 52px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.eg-auth-title h2 {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 6px;
}

.eg-auth-title h2 span {
    color: var(--primary, #2e7b0b);
}

.eg-auth-title p {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 28px;
}

.eg-auth .form-group {
    margin-bottom: 18px;
}

.eg-auth-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.eg-auth-input {
    display: flex;
    align-items: center;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
    transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
}

.eg-auth-input:focus-within {
    border-color: var(--primary, #2e7b0b);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(46, 123, 11, 0.12);
}

.eg-auth-input .eg-auth-prefix {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0 14px;
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    border-right: 1.5px solid #e5e7eb;
    height: 26px;
    white-space: nowrap;
}

.eg-auth-input .eg-auth-prefix i {
    color: var(--primary, #2e7b0b);
}

.eg-auth .eg-auth-input .form-control {
    border: 0;
    background: transparent;
    box-shadow: none;
    height: 52px;
    padding: 0 16px;
    font-size: 15px;
    font-weight: 500;
    color: #111827;
    letter-spacing: 0.5px;
    text-transform: none;
}

.eg-auth .eg-auth-input .form-control:focus {
    outline: none;
    box-shadow: none;
}

.eg-auth .eg-auth-input .form-control::placeholder {
    color: #9ca3af;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
}

.eg-auth #otpInput {
    letter-spacing: 6px;
    font-size: 18px;
    font-weight: 600;
}

.eg-auth #otpInput::placeholder {
    letter-spacing: 0;
    font-size: 15px;
}

/* Checkboxes */
.eg-auth .form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding-left: 0;
    margin-bottom: 14px;
}

.eg-auth .form-check-input {
    float: none;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
    margin: 1px 0 0;
    border: 1.5px solid #cbd5e1;
    border-radius: 5px;
    cursor: pointer;
}

.eg-auth .form-check-input:checked {
    background-color: var(--primary, #2e7b0b);
    border-color: var(--primary, #2e7b0b);
}

.eg-auth .form-check-input:focus {
    box-shadow: 0 0 0 3px rgba(46, 123, 11, 0.15);
    border-color: var(--primary, #2e7b0b);
}

.eg-auth .form-check-label {
    font-size: 14px;
    color: #374151;
    cursor: pointer;
}

.eg-auth .eg-auth-terms .form-check-label {
    font-size: 12.5px;
    line-height: 1.6;
    color: #6b7280;
}

.eg-auth .eg-auth-terms a {
    color: var(--primary, #2e7b0b);
    font-weight: 600;
    text-decoration: none;
}

.eg-auth .eg-auth-terms a:hover {
    text-decoration: underline;
}

/* Error */
.eg-auth #errorMessage {
    border-radius: 10px;
    font-size: 13.5px;
    padding: 10px 14px;
}

/* Buttons */
.eg-auth-actions {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

.eg-auth-actions .btn {
    flex: 1;
    height: 52px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.3px;
    text-transform: none;
    transition: transform 0.15s, box-shadow 0.2s, background 0.2s, opacity 0.2s;
}

.eg-auth-actions #sendOtpBtn {
    background: linear-gradient(135deg, #3d9a12 0%, #2e7b0b 100%);
    color: #fff;
    border: 0;
    box-shadow: 0 8px 20px rgba(46, 123, 11, 0.25);
}

.eg-auth-actions #sendOtpBtn:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(46, 123, 11, 0.3);
}

.eg-auth-actions #sendOtpBtn:disabled {
    background: #e5e7eb;
    color: #6b7280;
    box-shadow: none;
    opacity: 1;
    cursor: not-allowed;
}

.eg-auth-actions #verifyOtpBtn {
    background: #1a1a2e;
    color: #fff;
    border: 0;
    box-shadow: 0 8px 20px rgba(26, 26, 46, 0.2);
}

.eg-auth-actions #verifyOtpBtn:hover {
    transform: translateY(-1px);
    background: #000;
}

/* Sign-up page extras */
.eg-auth-actions #resendOtpBtn {
    background: #fff;
    color: var(--primary, #2e7b0b);
    border: 1.5px solid var(--primary, #2e7b0b);
}

.eg-auth-actions #resendOtpBtn:hover:not(:disabled) {
    background: rgba(46, 123, 11, 0.06);
}

.eg-auth-actions #resendOtpBtn:disabled {
    color: #6b7280;
    border-color: #e5e7eb;
    background: #f3f4f6;
    opacity: 1;
}

.eg-auth-signup-page .eg-auth-form {
    padding-top: 40px;
    padding-bottom: 40px;
}

.eg-auth-signup-page .eg-auth-title p {
    margin-bottom: 22px;
}

.eg-auth-signup-page .form-group {
    margin-bottom: 14px;
}

.eg-auth-signup-page .eg-auth-input .form-control {
    height: 48px;
}

/* readonly mobile (already verified) */
.eg-auth .eg-auth-input:has(.form-control[readonly]) {
    background: #f1f5f0;
    border-style: dashed;
}

.eg-auth .eg-auth-input .form-control[readonly] {
    color: #4b5563;
    cursor: not-allowed;
}

/* hide number spinners on type="number" */
.eg-auth input[type=number]::-webkit-outer-spin-button,
.eg-auth input[type=number]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.eg-auth input[type=number] {
    -moz-appearance: textfield;
    appearance: textfield;
}

/* show / hide password */
.eg-auth-eye {
    border: 0;
    background: transparent;
    color: #9ca3af;
    padding: 0 16px;
    height: 48px;
    cursor: pointer;
}

.eg-auth-eye:hover,
.eg-auth-eye:focus-visible {
    color: var(--primary, #2e7b0b);
    outline: none;
}

/* Footer */
.eg-auth-secure {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 18px 0 0;
    font-size: 12.5px;
    color: #9ca3af;
}

.eg-auth-secure i {
    color: var(--primary, #2e7b0b);
}

.eg-auth-signup {
    margin-top: 22px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    text-align: center;
    font-size: 14px;
    color: #6b7280;
}

.eg-auth-signup p {
    margin: 0;
}

.eg-auth-signup a {
    color: var(--primary, #2e7b0b);
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
}

.eg-auth-signup a:hover {
    text-decoration: underline;
}

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
    .eg-auth-brand {
        flex-basis: 40%;
        padding: 36px 28px;
    }

    .eg-auth-form {
        padding: 40px 36px;
    }
}

@media (max-width: 767px) {
    body {
        padding: 0;
        align-items: flex-start;
    }

    .eg-auth .container {
        padding: 0;
    }

    .eg-auth-card {
        flex-direction: column;
        border-radius: 0;
        min-height: 100vh;
        box-shadow: none;
    }

    .eg-auth-brand {
        flex: none;
        padding: 28px 20px 24px;
        flex-direction: row;
        align-items: center;
        gap: 16px;
    }

    .eg-auth-logo {
        width: 72px;
        height: 72px;
        flex: 0 0 72px;
        padding: 8px;
    }

    .eg-auth-brand h3 {
        font-size: 17px;
        margin: 0;
    }

    .eg-auth-brand > p,
    .eg-auth-perks {
        display: none;
    }

    .eg-auth-form {
        flex: 1;
        justify-content: flex-start;
        padding: 28px 20px 32px;
        border-radius: 20px 20px 0 0;
        margin-top: -16px;
        background: #fff;
        position: relative;
        z-index: 2;
    }

    .eg-auth-title h2 {
        font-size: 23px;
    }

    .eg-auth-title p {
        margin-bottom: 22px;
    }

    .eg-auth-actions {
        flex-direction: column;
    }
}
