/* ============================================================
   Provider Auth Pages (Login / Register)
   Ministry of Environment - RAC/MAC Platform
   ============================================================ */

/* Hide navbar on auth pages */
.navbar { display: none !important; }

/* ---- Page layout ---- */
.auth-page {
    display: grid;
    grid-template-columns: 420px 1fr;
    min-height: 100vh;
    overflow: hidden;
}

/* ============================================================
   LEFT PANEL
   ============================================================ */
.auth-left {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 36px 32px 32px;
}

/* Background photo */
.auth-left-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    z-index: 0;
}

/* Blue-teal gradient overlay */
.auth-left-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        160deg,
        rgba(10, 45, 94, 0.82) 0%,
        rgba(0, 150, 199, 0.70) 55%,
        rgba(72, 202, 228, 0.55) 100%
    );
}

.auth-left-content {
    position: relative;
    z-index: 2;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
}

/* Ministry logo block */
.auth-logo-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}
.auth-emblem {
    width: 56px;
    height: 56px;
    object-fit: contain;
    flex-shrink: 0;
}
.auth-logo-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.auth-logo-si {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    font-family: var(--font-main);
    line-height: 1.3;
}
.auth-logo-ta {
    font-size: 0.75rem;
    color: rgba(255,255,255,0.9);
    line-height: 1.3;
}
.auth-logo-en {
    font-size: 0.78rem;
    font-weight: 600;
    color: rgba(255,255,255,0.9);
    font-family: var(--font-main);
}

/* Tagline */
.auth-left-tagline {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.88);
    font-family: var(--font-main);
    font-weight: 400;
    position: relative;
    z-index: 2;
    margin-top: 16px;
    text-align: left;
}

/* Language buttons */
.auth-lang {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 8px;
    justify-content: flex-start;
    margin-top: auto;
}
.auth-lang-btn {
    border: 1.5px solid rgba(0, 0, 0, 0.705);
    background: transparent;
    color: black;
    border-radius: 8px;
    padding: 6px 16px;
    font-size: 0.82rem;
    font-weight: 600;
    font-family: var(--font-main);
    cursor: pointer;
    transition: all var(--transition);
}
.auth-lang-btn:hover,
.auth-lang-btn.auth-lang-active {
    background: rgba(255,255,255,0.22);
    border-color: var(--white);
    color: var(--white);
}

/* ============================================================
   RIGHT PANEL
   ============================================================ */
.auth-right {
    background: var(--white);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 60px;
    position: relative;
}

.auth-form-wrap {
    width: 100%;
    max-width: 440px;
}

/* Title */
.auth-title {
    font-family: var(--font-main);
    font-size: 2rem;
    font-weight: 700;
    color: var(--gray-800);
    text-align: center;
    margin-bottom: 6px;
}
.auth-subtitle {
    text-align: center;
    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 32px;
}

/* Form */
.auth-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* Field */
.auth-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.auth-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-700);
}
.auth-label span { color: #e74c3c; }

/* Input wrapper with icon */
.auth-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.auth-input-icon {
    position: absolute;
    left: 14px;
    color: var(--gray-400);
    font-size: 0.9rem;
    pointer-events: none;
    z-index: 1;
}
.auth-input {
    width: 100%;
    border: 1.5px solid var(--gray-200);
    border-radius: 8px;
    padding: 12px 14px 12px 40px;
    font-size: 0.9rem;
    font-family: var(--font-body);
    color: var(--gray-800);
    background: var(--white);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.auth-input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0, 180, 216, 0.12);
}
.auth-input::placeholder { color: var(--gray-400); }

/* Password eye toggle */
.auth-input--pass { padding-right: 44px; }
.auth-eye-btn {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    font-size: 0.9rem;
    padding: 4px;
    line-height: 1;
    transition: color var(--transition);
}
.auth-eye-btn:hover { color: var(--gray-600); }

/* Forgot password */
.auth-forgot-row {
    display: flex;
    justify-content: flex-end;
    margin-top: 4px;
}
.auth-forgot {
    font-size: 0.82rem;
    color: var(--gray-500);
    transition: color var(--transition);
}
.auth-forgot:hover { color: var(--primary); }

/* Remember me */
.auth-remember { margin-top: -4px; }
.auth-check-label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
}
.auth-checkbox {
    display: none;
}
.auth-check-box {
    width: 18px;
    height: 18px;
    border: 1.5px solid var(--gray-300);
    border-radius: 4px;
    background: var(--white);
    flex-shrink: 0;
    position: relative;
    transition: all var(--transition);
}
.auth-checkbox:checked + .auth-check-box {
    background: var(--primary);
    border-color: var(--primary);
}
.auth-checkbox:checked + .auth-check-box::after {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 6px;
    height: 10px;
    border: 2px solid var(--white);
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}
.auth-check-text {
    font-size: 0.87rem;
    color: var(--gray-600);
}

/* Primary button */
.auth-btn-primary {
    width: 100%;
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 8px;
    padding: 14px;
    font-size: 1rem;
    font-weight: 700;
    font-family: var(--font-main);
    cursor: pointer;
    transition: background var(--transition), box-shadow var(--transition);
    margin-top: 4px;
}
.auth-btn-primary:hover {
    background: var(--primary-dark);
    box-shadow: 0 4px 16px rgba(10,45,94,0.25);
}

/* Switch link */
.auth-switch {
    text-align: center;
    font-size: 0.87rem;
    color: var(--gray-500);
}
.auth-switch-link {
    color: var(--accent-dark);
    font-weight: 700;
    transition: color var(--transition);
}
.auth-switch-link:hover { color: var(--primary); }

/* Two-col row for register */
.auth-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

/* Bottom nav links */
.auth-bottom-actions {
    position: absolute;
    bottom: 24px;
    display: flex;
    gap: 20px;
}
.auth-bottom-btn {
    font-size: 0.8rem;
    color: var(--gray-400);
    transition: color var(--transition);
}
.auth-bottom-btn:hover { color: var(--primary); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .auth-page {
        grid-template-columns: 1fr;
        grid-template-rows: 220px 1fr;
    }
    .auth-left {
        padding: 24px 24px 20px;
    }
    .auth-left-tagline { padding-bottom: 0; }
    .auth-right {
        padding: 36px 24px;
        justify-content: flex-start;
    }
}

@media (max-width: 480px) {
    .auth-two-col { grid-template-columns: 1fr; }
    .auth-title { font-size: 1.6rem; }
}

/* Terms link */
.auth-terms { margin-top: -4px; }
.auth-terms-link {
    color: var(--accent-dark);
    font-weight: 700;
    transition: color var(--transition);
}
.auth-terms-link:hover { color: var(--primary); }

/* Error message */
.auth-error {
    background: #fff0f0;
    border: 1.5px solid #ffcdd2;
    border-radius: 8px;
    padding: 12px 16px;
    font-size: 0.87rem;
    color: #c0392b;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}