/* ===== EPOKA GLOBAL - AUTH PAGES STYLESHEET ===== */
/* Used by: login.html, register.html                */
/* Depends on: css/style.css (must load before)      */


/* ===== AUTH BODY RESET START ===== */
.auth-body {
    background: var(--bg-light);
    min-height: 100vh;
    overflow-x: hidden;
}
/* ===== AUTH BODY RESET END ===== */


/* ===== AUTH PAGE WRAPPER START ===== */
/*
   2-column split layout:
   Left  → brand panel (golden, decorative)
   Right → form panel (white, clean)
*/
.auth-page-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}
/* ===== AUTH PAGE WRAPPER END ===== */


/* ===== LEFT PANEL START ===== */
.auth-left-panel {
    background: var(--secondary);              /* deep forest green */
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 56px;
    min-height: 100vh;
}

/* ===== HONEYCOMB BACKGROUND PATTERN START ===== */
.auth-hex-bg {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    opacity: 0.07;
    pointer-events: none;
    overflow: hidden;
}

.auth-hex-row {
    display: flex;
    gap: 8px;
}

.auth-hex-row--offset {
    transform: translateX(44px);
}

.auth-hex {
    display: block;
    width: 80px;
    height: 88px;
    background: var(--primary);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    animation: auth-hex-pulse 4s ease-in-out infinite;
}

.auth-hex:nth-child(2) { animation-delay: 0.5s; }
.auth-hex:nth-child(3) { animation-delay: 1s; }
.auth-hex:nth-child(4) { animation-delay: 1.5s; }

@keyframes auth-hex-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50%       { opacity: 0.6; transform: scale(0.96); }
}
/* ===== HONEYCOMB BACKGROUND PATTERN END ===== */

/* ===== LEFT PANEL CONTENT START ===== */
.auth-left-content {
    position: relative;
    z-index: 2;
    max-width: 400px;
    width: 100%;
    animation: auth-slide-in-left 0.6s ease both;
}

@keyframes auth-slide-in-left {
    from { opacity: 0; transform: translateX(-28px); }
    to   { opacity: 1; transform: translateX(0); }
}

/* Brand logo */
.auth-brand-logo {
    display: inline-block;
    margin-bottom: 36px;
}

.auth-brand-logo img {
    height: 64px;
    width: auto;
    object-fit: contain;
    filter: brightness(0) invert(1);   /* white logo on dark bg */
}

/* Headline */
.auth-left-title {
    font-family: var(--font-heading);
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--primary);
    line-height: 1.25;
    margin-bottom: 16px;
}

/* Subtext */
.auth-left-sub {
    font-family: var(--font-body);
    font-size: 15px;
    color: rgba(255, 255, 255, 0.65);
    line-height: 1.7;
    margin-bottom: 36px;
}

/* Trust / perks list */
.auth-trust-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.auth-trust-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
}

.auth-trust-icon {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(201, 162, 39, 0.18);
    border: 1.5px solid rgba(201, 162, 39, 0.35);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--primary);
    flex-shrink: 0;
}
/* ===== LEFT PANEL CONTENT END ===== */
/* ===== LEFT PANEL END ===== */


/* ===== RIGHT PANEL START ===== */
.auth-right-panel {
    background: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    position: relative;
    min-height: 100vh;
    overflow-y: auto;
}

/* Back to home link */
.auth-back-link {
    position: absolute;
    top: 28px;
    left: 36px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-light);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: color 0.2s;
}

.auth-back-link:hover {
    color: var(--primary-dark);
}
/* ===== RIGHT PANEL END ===== */


/* ===== FORM CARD START ===== */
.auth-form-card {
    width: 100%;
    max-width: 440px;
    animation: auth-slide-in-right 0.6s ease both;
}

@keyframes auth-slide-in-right {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}
/* ===== FORM CARD END ===== */


/* ===== CARD HEADER START ===== */
.auth-card-head {
    text-align: center;
    margin-bottom: 32px;
}

/* Icon circle */
.auth-card-icon {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--bg-warm), var(--bg-cream));
    border: 3px solid var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: var(--primary-dark);
    margin: 0 auto 18px;
    box-shadow: 0 6px 24px rgba(201, 162, 39, 0.25);
    animation: auth-icon-pop 0.5s 0.2s ease both;
}

/* Register icon — secondary color accent */
.auth-card-icon--register {
    background: linear-gradient(135deg, rgba(33, 56, 38, 0.08), rgba(33, 56, 38, 0.03));
    border-color: var(--secondary);
    color: var(--secondary);
    box-shadow: 0 6px 24px rgba(33, 56, 38, 0.12);
}

@keyframes auth-icon-pop {
    from { transform: scale(0.6); opacity: 0; }
    65%  { transform: scale(1.1); }
    to   { transform: scale(1);   opacity: 1; }
}

.auth-card-title {
    font-family: var(--font-heading);
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
}

.auth-card-sub {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--text-light);
    margin: 0;
}
/* ===== CARD HEADER END ===== */


/* ===== FORM FIELDS START ===== */

/* 2-column row for name + phone */
.auth-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

@media (max-width: 440px) {
    .auth-row-2col {
        grid-template-columns: 1fr;
    }
}

/* Field group */
.auth-field-group {
    margin-bottom: 18px;
}

/* Label */
.auth-label {
    display: block;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-mid);
    margin-bottom: 7px;
}

/* Label row (with forgot link) */
.auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 7px;
}

.auth-label-row .auth-label {
    margin-bottom: 0;
}

.auth-forgot-link {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    color: var(--primary-dark);
    text-decoration: none;
    transition: color 0.2s;
}

.auth-forgot-link:hover {
    color: var(--primary);
}

/* Input wrapper — icon + input + eye btn */
.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

/* Left icon */
.auth-input-icon {
    position: absolute;
    left: 14px;
    color: var(--text-light);
    font-size: 15px;
    pointer-events: none;
    z-index: 2;
    transition: color 0.2s;
}

/* Input */
.auth-input {
    width: 100%;
    padding: 12px 42px 12px 40px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    background: var(--bg-cream);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    outline: none;
    transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.auth-input::placeholder {
    color: #c4af8a;
    font-weight: 400;
}

.auth-input:focus {
    border-color: var(--primary);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.12);
}

.auth-input:focus + .auth-input-icon,
.auth-input-wrap:focus-within .auth-input-icon {
    color: var(--primary-dark);
}

/* Valid state */
.auth-input.auth-valid {
    border-color: #27ae60;
    background: var(--white);
}

/* Invalid state */
.auth-input.auth-invalid {
    border-color: #c0392b;
    background: #fff9f9;
}

/* Eye toggle button */
.auth-eye-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    font-size: 15px;
    padding: 4px;
    border-radius: 6px;
    transition: color 0.2s;
    z-index: 2;
}

.auth-eye-btn:hover {
    color: var(--primary-dark);
}

/* Inline error message */
.auth-field-error {
    display: block;
    font-family: var(--font-body);
    font-size: 11.5px;
    font-weight: 700;
    color: #c0392b;
    margin-top: 5px;
    min-height: 16px;
    opacity: 0;
    transform: translateY(-4px);
    transition: opacity 0.2s, transform 0.2s;
}

.auth-field-error.visible {
    opacity: 1;
    transform: translateY(0);
}
/* ===== FORM FIELDS END ===== */


/* ===== PASSWORD STRENGTH START ===== */
.auth-strength-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 8px;
}

.auth-strength-bar {
    flex: 1;
    height: 4px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
}

.auth-strength-fill {
    height: 100%;
    width: 0%;
    border-radius: 4px;
    transition: width 0.3s, background 0.3s;
}

.auth-strength-label {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 700;
    min-width: 44px;
    text-align: right;
}
/* ===== PASSWORD STRENGTH END ===== */


/* ===== CUSTOM CHECKBOX START ===== */
.auth-remember-row {
    margin-bottom: 22px;
}

.auth-check-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    color: var(--text-mid);
    cursor: pointer;
    user-select: none;
}

/* Hide native checkbox */
.auth-checkbox {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Custom checkmark */
.auth-checkmark {
    width: 18px;
    height: 18px;
    min-width: 18px;
    border: 2px solid var(--border);
    border-radius: 5px;
    background: var(--bg-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.18s;
    position: relative;
}

.auth-checkmark::after {
    content: '';
    width: 5px;
    height: 9px;
    border-right: 2.5px solid #fff;
    border-bottom: 2.5px solid #fff;
    transform: rotate(45deg) scale(0);
    transition: transform 0.18s;
    margin-top: -2px;
}

.auth-checkbox:checked ~ .auth-checkmark {
    background: var(--primary);
    border-color: var(--primary-dark);
}

.auth-checkbox:checked ~ .auth-checkmark::after {
    transform: rotate(45deg) scale(1);
}

/* Terms label with links */
.auth-terms-label {
    align-items: flex-start;
    line-height: 1.5;
}

.auth-terms-link {
    color: var(--primary-dark);
    font-weight: 700;
    text-decoration: none;
}

.auth-terms-link:hover {
    text-decoration: underline;
}
/* ===== CUSTOM CHECKBOX END ===== */


/* ===== SUBMIT BUTTON START ===== */
.auth-submit-btn {
    width: 100%;
    padding: 14px 24px;
    background: var(--primary);
    color: #fff;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 40px;
    cursor: pointer;
    transition: all 0.25s;
    box-shadow: 0 4px 20px rgba(201, 162, 39, 0.4);
    letter-spacing: 0.3px;
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.auth-submit-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(201, 162, 39, 0.5);
}

.auth-submit-btn:active {
    transform: translateY(0);
}

.auth-submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.auth-btn-loader {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
/* ===== SUBMIT BUTTON END ===== */


/* ===== DIVIDER START ===== */
.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1.5px;
    background: var(--border);
}
/* ===== DIVIDER END ===== */


/* ===== SOCIAL BUTTONS START ===== */
.auth-social-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.auth-social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    background: var(--white);
    border: 1.5px solid var(--border);
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    color: var(--text-mid);
    cursor: pointer;
    transition: all 0.2s;
}

.auth-social-btn:hover {
    background: var(--bg-cream);
    border-color: var(--primary);
    color: var(--text-dark);
    transform: translateY(-1px);
    box-shadow: 0 3px 12px var(--shadow);
}
/* ===== SOCIAL BUTTONS END ===== */


/* ===== SWITCH LINK (login/register toggle) START ===== */
.auth-switch-text {
    text-align: center;
    font-family: var(--font-body);
    font-size: 13.5px;
    color: var(--text-light);
    margin: 0;
}

.auth-switch-link {
    font-weight: 700;
    color: var(--secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.auth-switch-link:hover {
    color: var(--primary-dark);
}
/* ===== SWITCH LINK END ===== */


/* ===== SUCCESS TOAST START ===== */
.auth-toast {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%) translateY(30px);
    background: var(--secondary);
    color: #fff;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    padding: 14px 28px;
    border-radius: 40px;
    border-left: 4px solid var(--primary);
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    z-index: 9999;
    white-space: nowrap;
}

.auth-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.auth-toast i {
    color: var(--primary);
    font-size: 16px;
}
/* ===== SUCCESS TOAST END ===== */


/* ===== RESPONSIVE — TABLET (≤991px) START ===== */
@media (max-width: 991.98px) {
    .auth-page-wrap {
        grid-template-columns: 1fr;
    }

    .auth-left-panel {
        min-height: auto;
        padding: 48px 32px;
    }

    .auth-left-content {
        max-width: 100%;
        text-align: center;
    }

    .auth-left-title {
        font-size: 1.8rem;
    }

    .auth-trust-list {
        align-items: center;
    }

    .auth-right-panel {
        min-height: auto;
        padding: 40px 24px 56px;
    }

    .auth-back-link {
        top: 20px;
        left: 20px;
    }
}
/* ===== RESPONSIVE — TABLET END ===== */


/* ===== RESPONSIVE — MOBILE (≤575px) START ===== */
@media (max-width: 575.98px) {
    .auth-left-panel {
        padding: 36px 20px;
    }

    .auth-left-title {
        font-size: 1.5rem;
    }

    .auth-left-sub {
        font-size: 13.5px;
    }

    .auth-right-panel {
        padding: 36px 16px 48px;
    }

    .auth-form-card {
        max-width: 100%;
    }

    .auth-card-title {
        font-size: 1.45rem;
    }

    .auth-social-row {
        grid-template-columns: 1fr;
    }

    .auth-toast {
        font-size: 13px;
        padding: 12px 20px;
        bottom: 20px;
    }
}
/* ===== RESPONSIVE — MOBILE END ===== */