﻿/* =========================================================
   RDA Raipur - Authentication Pages Global CSS
   (Login, Registration, Forgot Password)
   ========================================================= */

/* 1. Page Background */
.login-page-bg,
.auth-page-bg {
    background-color: #ffffff;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Cpath d='M0 100 L100 0 M-10 10 L10 -10 M90 110 L110 90' stroke='%23f1f5f9' stroke-width='1'/%3E%3Cpath d='M0 0 L100 100 M-10 90 L10 110 M90 -10 L110 10' stroke='%23f1f5f9' stroke-width='1'/%3E%3C/svg%3E");
    min-height: 85vh;
    display: flex;
    align-items: center;
    padding: 40px 0;
    position: relative;
}

/* 2. Main Container Card */
.login-card,
.auth-card {
    border-radius: 20px;
    border: none;
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.1) !important;
    background: #fff;
}

/* 3. Left Side Branding / Image */
.login-image-side {
    padding: 0;
    background-color: #ffffff;
    position: relative;
}

    .login-image-side img {
        width: 100%;
        height: 100%;
        object-fit: contain;
        object-position: center;
    }

.auth-brand-side {
    background: linear-gradient(135deg, #1e293b 0%, #334155 100%);
    padding: 40px;
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.brand-logo-circle {
    width: 100px;
    height: 100px;
    background: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

/* 4. Right Side Form Area */
.login-form-side,
.auth-form-side {
    padding: 40px 50px;
    background: #fff;
}

.form-heading {
    color: #1e293b;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.form-subtitle {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 20px;
}

/* 5. Clean Input Styling */
.form-control {
    border-radius: 8px;
    padding: 12px 15px;
    border: 1px solid #cbd5e1;
    background-color: #f8fafc;
}

    .form-control:focus {
        border-color: #f97316;
        background-color: #fff;
        box-shadow: 0 0 0 0.25rem rgba(249, 115, 22, 0.1);
    }

/* Browser Default Password Eye Fix */
input::-ms-reveal,
input::-ms-clear {
    display: none;
}

/* 6. Buttons */
.btn-login-gradient,
.btn-auth-gradient {
    background: linear-gradient(180deg, #ff9f43 0%, #f97316 100%);
    color: white !important;
    font-weight: 700;
    border: none;
    border-radius: 50px;
    padding: 12px 35px;
    box-shadow: 0 5px 15px rgba(249, 115, 22, 0.3);
    transition: 0.3s;
    text-transform: uppercase;
    width: 100%;
}

    .btn-login-gradient:hover,
    .btn-auth-gradient:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(249, 115, 22, 0.4);
    }

.btn-outline-custom {
    background: transparent;
    color: #f97316;
    border: 2px solid #f97316;
    font-weight: 700;
    text-transform: uppercase;
    padding: 10px 35px;
    border-radius: 50px;
    transition: 0.3s;
    width: 100%;
}

    .btn-outline-custom:hover {
        background: #fff7ed;
    }

/* 7. Captcha Box & Password Toggle */
.captcha-box {
    background: #f8fafc;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #e2e8f0;
}

#togglePassword,
.toggle-password {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #64748b;
    outline: none;
}

/* Specific adjustment for forms with top labels */
.toggle-password {
    top: 36px;
    right: 12px;
}

.progress-bar {
    transition: width 0.4s ease, background-color 0.4s ease;
}

/* 8. Custom Toast Notification */
.custom-toast {
    position: fixed;
    top: 30px;
    right: 30px;
    background: #ffffff;
    border-left: 5px solid #10b981;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    padding: 15px 25px;
    border-radius: 8px;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 15px;
    transform: translateX(150%);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    min-width: 300px;
}

    .custom-toast.show {
        transform: translateX(0);
    }

    .custom-toast .toast-text {
        font-weight: 700;
        color: #1e293b;
        font-size: 0.95rem;
        line-height: 1.4;
    }

/* 9. Mobile Responsiveness */
@media (max-width: 767.98px) {
    .login-form-side,
    .auth-form-side {
        padding: 30px 20px;
    }

    .auth-brand-side {
        padding: 30px;
    }

    .custom-toast {
        top: 20px;
        right: 10px;
        left: 10px;
        min-width: auto;
        transform: translateY(-150%);
    }

        .custom-toast.show {
            transform: translateY(0);
        }
}
