/* Google Fonts - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

:root {
    --primary-color: #0bb4a3;
    --primary-hover: #099385;
    --bg-light: #f4f7f6;
    --text-dark: #2d3748;
    --text-muted: #718096;
    --white: #ffffff;
    --border-color: #e2e8f0;
    --card-border: #e2e8f0; /* হালকা বর্ডারের নতুন ভ্যারিয়েবল */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-image: linear-gradient(135deg, #f5f7fa 0%, #e4ebf5 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Main Wrapper Box */
.card-wrapper {
    display: flex;
    background: var(--white);
    width: 100%;
    max-width: 950px;
    height: 600px;
    border-radius: 20px;
    /* হালকা বর্ডার এবং সফট শ্যাডো যুক্ত করা হয়েছে */
    border: 1px solid var(--card-border); 
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.03), 0 5px 15px rgba(0, 0, 0, 0.02);
    overflow: hidden;
}

/* Left Side - Image Panel */
.login-image {
    flex: 1.6;
    /* background-image: linear-gradient(135deg, rgba(11, 180, 163, 0.1), rgba(11, 180, 163, 0.3)), 
                      url('../images/login.jpeg'); */
     background-image: url('../images/login.jpeg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: block;
}

/* Right Side - Form Panel */
.login-form {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: var(--white);
    border-left: 1px solid rgba(11, 180, 163, 0.1);
}

/* Brand Header Style */
.brand-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 40px;
}

.brand-header .small_logo {
    width: 60px;
    height: 60px;
    background:
        url('../images/bionex.png');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    padding: 12px;
    border-radius: 12px;
}

.title-container h1 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    line-height: 1.2;
}

.title-container .sub-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 1px;
    margin-top: 3px;
}

/* Form Styles */
#loginForm label {
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 8px;
    margin-top: 20px;
}

#loginForm label:first-of-type {
    margin-top: 0;
}

.form-control {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.95rem;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    background-color: #f8fafc;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    background-color: var(--white);
    box-shadow: 0 0 0 4px rgba(11, 180, 163, 0.15);
}

.form-control::placeholder {
    color: #cbd5e1;
}

/* Login Button */
.btn-login {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    border: none;
    border-radius: 10px;
    color: var(--white);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(11, 180, 163, 0.2);
}

.btn-login:hover {
    background: var(--primary-hover);
    transform: translateY(-1px);
    box-shadow: 0 6px 15px rgba(11, 180, 163, 0.3);
}

.btn-login:active {
    transform: translateY(1px);
}

.btn-login .small_logo{
    margin-right: 8px;
}

/* Reset / Forgot Password Link Container */
.reset-container {
    text-align: center;
    margin-top: 25px;
}

.btn-reset {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.88rem;
    font-weight: 500;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.btn-reset .small_logo {
    font-size: 0.85rem;
}

.btn-reset:hover {
    color: var(--primary-color);
    text-decoration: none;
    transform: scale(1.02);
}


/* ==========================================================================
   SweetAlert2 (Forgot/Reset Password Modal) Custom CSS
   ========================================================================== */

.swal2-popup {
    border-radius: 18px !important;
    font-family: 'Poppins', sans-serif !important;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15) !important;
    border: 1px solid var(--border-color) !important;
    padding: 30px !important;
}

/* Title */
.swal2-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: var(--text-dark) !important;
    margin-bottom: 15px !important;
}

/* Content Text */
.swal2-html-container {
    font-size: 0.95rem !important;
    color: var(--text-muted) !important;
}

/* Inputs within SweetAlert */
.swal2-input {
    border-radius: 10px !important;
    border: 1.5px solid var(--border-color) !important;
    padding: 12px 16px !important;
    font-size: 0.95rem !important;
    height: auto !important;
    box-shadow: none !important;
    background-color: #f8fafc !important;
    transition: all 0.3s ease !important;
    margin: 20px auto 10px auto !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* Input Focus */
.swal2-input:focus {
    border-color: var(--primary-color) !important;
    background-color: var(--white) !important;
    box-shadow: 0 0 0 4px rgba(11, 180, 163, 0.15) !important;
}

/* Action Buttons Container */
.swal2-actions {
    margin-top: 25px !important;
    gap: 12px;
}

/* Confirm Button (Reset/Verify) - Matched with Primary Theme */
.swal2-confirm {
    background: var(--primary-color) !important;
    border-radius: 10px !important;
    padding: 12px 30px !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    box-shadow: 0 4px 12px rgba(11, 180, 163, 0.2) !important;
    transition: all 0.2s ease !important;
}

.swal2-confirm:hover {
    background: var(--primary-hover) !important;
    box-shadow: 0 6px 15px rgba(11, 180, 163, 0.3) !important;
}

/* Cancel Button */
.swal2-cancel {
    background: #e2e8f0 !important;
    color: var(--text-dark) !important;
    border-radius: 10px !important;
    padding: 12px 30px !important;
    font-weight: 600 !important;
    font-size: 0.95rem !important;
    transition: all 0.2s ease !important;
}

.swal2-cancel:hover {
    background: #cbd5e1 !important;
}

/* Timer & Errors */
#otpTimer {
    font-size: 15px;
    font-weight: 600;
    color: #e53e3e;
    display: inline-block;
    margin-top: 10px;
}

#otpError {
    color: #e53e3e;
    font-weight: 500;
    font-size: 0.85rem;
    margin-top: 5px;
    display: block;
}


/* Responsive (Mobile/Tablet) View */
@media (max-width: 850px) {
    .card-wrapper {
        flex-direction: column;
        height: auto;
        max-width: 450px;
        margin: 10px;
    }

    .login-image {
        display: none; 
    }

    .login-form {
        padding: 40px 30px;
    }
}