﻿/* ================= BODY ================= */
body {
    margin: 0;
    font-family: 'Segoe UI', sans-serif;
    background-image: url(../MyImages/My.png);
    background-size: cover;
    background-position: center;
}

/* ================= CONTAINER ================= */
.login-container {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* ================= CARD ================= */
.login-card {
    width: 700px;
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    background: #fff;
}

/* ================= LEFT PANEL ================= */
.login-left {
    width: 35%;
    background: linear-gradient(135deg, #e32525, #813c3c);
    color: #fff;
    text-align: center;
    padding: 30px 15px;
}

.logo {
    width: 135px;
    margin-bottom: 15px;
}

.login-left h2 {
    font-size: 20px;
    margin-bottom: 5px;
}

.login-left p {
    font-size: 13px;
    font-weight: 600;
    opacity: 0.9;
}

/* ================= RIGHT PANEL ================= */
.login-right {
    width: 65%;
    padding: 0; /* 🔥 IMPORTANT */
}

/* ================= HEADER ================= */
.right-header {
    width: 100%;
    background: #f8fafc;
    border-bottom: 1px solid #e5e7eb;
    padding: 14px 20px;
    text-align: center;
}

.header-title {
    font-size: 15px;
    font-weight: 600;
    color: #1f2937;
}

.header-icon {
    margin-right: 6px;
}

.header-subtitle {
    font-size: 12px;
    color: #6b7280;
    margin-top: 3px;
}

/* ================= FORM AREA ================= */
.form-area {
    padding: 10px 20px; /* 🔥 SINGLE SOURCE OF SPACING */
}

    .form-area h3 {
        margin-bottom: 15px;
        font-size: 18px;
    }

/* ================= INPUT GROUP ================= */
.input-group {
    position: relative;
    margin-bottom: 12px;
}

.icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: #777;
}

/* ================= INPUT ================= */
.input {
    width: 100%;
    height: 40px;
    padding: 0 10px 0 35px;
    border-radius: 6px;
    border: 1px solid #ccc;
    font-size: 13px;
    background: #f9fbfd;
    box-sizing: border-box;
}

    .input:focus {
        border-color: #4facfe;
        background: #fff;
        outline: none;
        box-shadow: 0 0 0 2px rgba(79,172,254,0.2);
    }

/* ================= BUTTON ================= */
.btn-primary {
    width: 100%;
    height: 40px;
    margin-top: 12px;
    border-radius: 6px;
    border: none;
    background: linear-gradient(135deg, #4facfe, #007bff);
    color: white;
    font-size: 14px;
    cursor: pointer;
    box-sizing: border-box;
}

    .btn-primary:hover {
        transform: translateY(-1px);
        box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    }

/* ================= FORGOT ================= */
.forgot {
    display: block;
    margin-top: 8px;
    text-align: right;
    font-size: 12px;
    text-decoration: none;
    color: #007bff;
}

/* ================= FOOTER ================= */
.footer {
    margin-top: 15px;
    text-align: center;
    font-size: 12px;
    color: #777;
}

/* ================= OTP MODAL ================= */
#otpModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
}

.otp-box {
    width: 320px;
    margin: 120px auto;
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

    .otp-box h2 {
        margin-bottom: 10px;
        font-size: 18px;
    }

    .otp-box p {
        font-size: 13px;
        color: #555;
    }

    .otp-box .input {
        text-align: center;
        font-size: 16px;
        letter-spacing: 3px;
    }

/* ================= VALIDATION ================= */
.validator,
span[style*="Red"] {
    font-size: 11px;
}
.text-red {
    color: #e53935 !important;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .login-card {
        width: 90%;
        flex-direction: column;
    }

    .login-left {
        width: 100%;
        padding: 20px;
    }

    .login-right {
        width: 100%;
    }
}
