/* ═══════════════════════════════════════════
   AUTH.CSS — Shared styles for Login,
   Register & Forgot Password pages
   Requires: common.css linked before this
═══════════════════════════════════════════ */

/* ── LAYOUT ── */
.auth-section {
    width: 100%;
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

/* ══════════════════════════════
   LEFT PANEL — shared by all 3
══════════════════════════════ */
.auth-left {
    background: linear-gradient(160deg, #00c89a 0%, #00a67f 30%, #0a5c4a 60%, #0f172a 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* padding: 50px 40px; */
    position: relative;
    overflow: hidden;
}

.auth-left::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 45%, rgba(0,0,0,0.12) 0%, transparent 70%),
        radial-gradient(ellipse 50% 40% at 5% 100%, rgba(0,0,0,0.3) 0%, transparent 60%);
    pointer-events: none;
    z-index: 0;
}

/* ── CIRCLE SHAPES ── */
.auth-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.auth-circle {
    position: absolute;
    border: 1.5px solid rgba(255,255,255,0.15);
    border-radius: 50%;
}

.auth-circle-1 {
    width: 420px;
    height: 420px;
    bottom: -100px;
    left: -80px;
    animation: auth-float 7s ease-in-out infinite;
}

.auth-circle-2 {
    width: 260px;
    height: 260px;
    top: -60px;
    right: -50px;
    animation: auth-float 9s ease-in-out infinite reverse;
}

.auth-circle-3 {
    width: 160px;
    height: 160px;
    top: 38%;
    left: -55px;
    border-color: rgba(255,255,255,0.07);
    animation: auth-float 11s ease-in-out infinite;
}

@keyframes auth-float {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-18px); }
}

/* ── LEFT INNER CONTENT ── */
.auth-left-inner {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 360px;
    width: 100%;
}

.auth-brand-logo {
    height: 70px;
    width: auto;
    margin-bottom: 10px;
    filter: drop-shadow(0 2px 10px rgba(0,0,0,0.2));
}

.auth-left-icon {
    width: 72px;
    height: 72px;
    background: rgba(255,255,255,0.12);
    border: 1.5px solid rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 22px;
    font-size: 28px;
    color: var(--white);
}

.auth-left-tagline {
    font-family: var(--title-font);
    font-size: 28px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 14px;
    background: linear-gradient(to right, #ffffff, rgba(255,255,255,0.8));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-left-tagline span {
    background: linear-gradient(to right, #ffffff, #b2f5e4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-left-desc {
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
}

/* Feature list (login only) */
.auth-features {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin-top: 22px;
}

.auth-feature-item {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(0,0,0,0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.1);
    border-left: 3px solid rgba(255,255,255,0.4);
    border-radius: 10px;
    padding: 12px 16px;
    text-align: left;
    transition: all 0.3s ease;
}

.auth-feature-item:hover {
    background: rgba(0,0,0,0.28);
    border-left-color: var(--white);
    transform: translateX(5px);
}

.auth-feature-icon {
    width: 36px;
    height: 36px;
    background: rgba(255,255,255,0.15);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 14px;
    flex-shrink: 0;
}

.auth-feature-text {
    font-size: var(--text-sm);
    color: rgba(255,255,255,0.9);
    font-weight: 500;
}

.auth-left-accent {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
}

/* RIGHT PANEL — shared by all 3 */
.auth-right {
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-form-wrap {
    width: 100%;
    max-width: 400px;
}

/* Back link */
.auth-back { margin-bottom: 20px; }

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--gray-600);
    text-decoration: none;
    transition: color 0.2s;
}

.back-link i {
    width: 30px;
    height: 30px;
    border: 1.5px solid var(--secondary-extra-light);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    background: #f9fafb;
    transition: all 0.2s;
}

.back-link:hover { color: var(--primary-color); }

.back-link:hover i {
    border-color: var(--primary-color);
    background: var(--primary-light);
    color: var(--primary-color);
}

/* Heading */
.auth-heading { margin-bottom: 26px; }

.auth-heading-icon {
    width: 52px;
    height: 52px;
    background: var(--primary-light);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 22px;
    margin-bottom: 14px;
}

.auth-heading h1 {
    font-family: var(--title-font);
    font-size: 26px;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 6px;
}

.auth-heading p {
    font-size: var(--text-sm);
    color: var(--gray-600);
    line-height: 1.6;
}

.auth-divider {
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    border-radius: 2px;
    margin: 10px 0 0;
}

/* ── FORM ELEMENTS ── */
.auth-form { display: flex; flex-direction: column; gap: 18px; }

.form-group { display: flex; flex-direction: column; gap: 6px; }

.form-group label {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--gray-700);
    letter-spacing: 0.3px;
}

.form-group label .required { color: var(--primary-color); }

.input-wrapper { position: relative; }

.input-icon {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 14px;
    pointer-events: none;
    transition: color 0.3s;
}

.input-wrapper input {
    width: 100%;
    padding: 11px 14px 11px 40px;
    border: 1.5px solid var(--secondary-extra-light);
    border-radius: 10px;
    font-family: var(--body-font);
    font-size: var(--text-md);
    color: var(--gray-900);
    background: #f9fafb;
    transition: all 0.3s ease;
    outline: none;
}

.input-wrapper input:focus {
    border-color: var(--primary-color);
    background: var(--white);
    box-shadow: 0 0 0 3px rgba(0,200,154,0.1);
}

.input-wrapper input:focus ~ .input-icon { color: var(--primary-color); }

/* Password toggle */
.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-400);
    font-size: 14px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    transition: color 0.3s;
}

.toggle-password:hover { color: var(--primary-color); }

/* Options row (login) */
.form-options { display: flex; justify-content: space-between; align-items: center; }

.remember-me { display: flex; align-items: center; gap: 8px; cursor: pointer; }

.remember-me input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    border: 1.5px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    flex-shrink: 0;
}

.remember-me input[type="checkbox"]:checked {
    background: var(--primary-color);
    border-color: var(--primary-color);
}

.remember-me input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 4px; top: 1px;
    width: 5px; height: 8px;
    border: 2px solid white;
    border-top: none; border-left: none;
    transform: rotate(45deg);
}

.remember-me span { font-size: var(--text-sm); color: var(--gray-700); }

.forgot-link {
    font-size: var(--text-sm);
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.forgot-link:hover { color: var(--primary-dark); text-decoration: underline; }

/* Primary action button */
.btn-auth {
    width: 100%;
    padding: 12px 24px;
    background: var(--primary-color);
    color: var(--white);
    border: 2px solid var(--primary-color);
    border-radius: 50px;
    font-family: var(--body-font);
    font-size: var(--text-md);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 15px rgba(0,200,154,0.3);
}

.btn-auth:hover {
    background: transparent;
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0,200,154,0.4);
}

.btn-auth:active { transform: translateY(0); }

/* Footer row */
.auth-footer-row {
    text-align: center;
    font-size: var(--text-sm);
    color: var(--gray-600);
}

.auth-footer-row a {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.auth-footer-row a:hover { color: var(--primary-dark); text-decoration: underline; }

/* RESPONSIVE */
@media (max-width: 900px) {
    .auth-section { grid-template-columns: 1fr; }
    .auth-left { display: none; }
    .auth-right { padding: 40px 30px 50px; }
}

@media (max-width: 576px) {
    .auth-right { padding: 32px 20px 40px; }
}