/* General Resets and Font */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

/* ------------------------- */
/* PREMIUM COLOR PALETTE & VARS */
/* ------------------------- */
:root {
    /* Backgrounds: Deeper, Richer, darker */
    --bg-main: #030508; 
    --bg-deep-radial: radial-gradient(circle at 50% 0%, #0B1626 0%, #020305 100%);
    
    /* Card: Smoked Glass Effect */
    --bg-card: rgba(12, 20, 35, 0.65);
    --bg-card-border: rgba(255, 255, 255, 0.08);

    /* Text: Crisper whites and cool greys */
    --text-main: #FFFFFF;
    --text-para: #B0C4DE;
    --text-muted: #647C96;

    /* Accents: "Electric Gemstone" vibes */
    --osian-cyan: #4FF4E8;
    --osian-mint: #70F3D6;
    --osian-yellow: #F0EA76;
    --osian-dark: #020812;

    /* Lighting & Glows */
    --osian-glow: rgba(79, 244, 232, 0.25);
    --osian-gradient: linear-gradient(135deg, #4FF4E8 0%, #70F3D6 50%, #F0EA76 100%);
    
    /* Refined Borders & Shadows */
    --border-color: rgba(95, 251, 241, 0.15);
    --border-focus: rgba(95, 251, 241, 0.5);
    --shadow: 0 20px 50px rgba(0, 0, 0, 0.7);
    --shadow-inner: inset 0 1px 0 rgba(255, 255, 255, 0.08); /* Highlight top edge */
}

body, html {
    height: 100%;
    width: 100%;
    display: block;
    position: relative;
    overflow: hidden;
    overflow-x: hidden;
    background: var(--bg-main);
    background-image: var(--bg-deep-radial); /* Premium Depth */
}

/* Ambient Background Glows - Made softer/more atmospheric */
body::before, body::after {
    content: "";
    position: absolute;
    filter: blur(80px); /* Increased blur for smoother gradient */
    opacity: 0.12;
    z-index: 0;
}
body::before {
    width: 500px; height: 500px; border-radius: 50%;
    left: -100px; top: -150px;
    background: var(--osian-cyan);
}
body::after {
    width: 600px; height: 600px; border-radius: 50%;
    right: -150px; bottom: -150px;
    background: #4259EF; /* Added a deep blue tone for contrast */
}

.osian-toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    transform: translateX(-50%);
    background: rgba(10, 15, 25, 0.95); /* Darker toast */
    color: var(--text-main);
    padding: 12px 16px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: none;
    z-index: 9999;
    max-width: 90vw;
    border: 1px solid var(--border-color);
    backdrop-filter: blur(10px);
}
.osian-toast.show { display: block; }
.osian-toast.success { 
    border-left: 4px solid var(--osian-mint);
}
.osian-toast.error { 
    border-left: 4px solid #ef4444;
}
.osian-toast.warning { 
    border-left: 4px solid var(--osian-yellow);
}

.login-container {
    display: flex;
    width: 1060px;
    height: auto;
    min-height: 640px;
    margin: 40px auto;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
    background: rgba(13, 22, 36, 0.4); /* Lower opacity base */
    border: 1px solid var(--bg-card-border);
    backdrop-filter: blur(20px); /* Heavy blur for premium glass feel */
    -webkit-backdrop-filter: blur(20px);
}

/* ------------------------- */
/* Info Section (Left Side) */
/* ------------------------- */
.info-section {
    width: 50%;
    /* Subtle gradient overlay instead of flat color */
    background: linear-gradient(160deg, rgba(79, 244, 232, 0.05), rgba(0, 0, 0, 0.2));
    color: var(--text-main);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 48px;
    text-align: center;
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.03);
}

/* Keeps the radial glows but makes them more subtle */
.info-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
      radial-gradient(120px 120px at 20% 30%, rgba(95,251,241,0.08) 0%, rgba(255,255,255,0.00) 60%),
      radial-gradient(180px 180px at 80% 70%, rgba(134,253,232,0.06) 0%, rgba(255,255,255,0.00) 60%);
    pointer-events: none;
}

.info-content .shield-logo { 
    height: 72px; 
    width: auto; 
    border-radius: 12px; 
    margin-bottom: 16px; 
    box-shadow: 0 15px 35px rgba(0,0,0,0.4); /* Deeper shadow */
    background: var(--osian-gradient);
    padding: 8px;
}
.info-content .logo-name { 
    font-size: 52px; 
    font-weight: 900; 
    letter-spacing: 1px; 
    text-transform: uppercase; 
    margin-bottom: 8px;
    background: var(--osian-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 15px rgba(95, 251, 241, 0.3)); /* Glow on text */
}
.info-content .slogan { 
    font-size: 18px; 
    font-weight: 600; 
    color: var(--text-main);
    opacity: 0.9;
}

.info-content p {
    font-size: 24px;
    font-weight: 300;
    color: var(--text-para);
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* ------------------------- */
/* Form Section (Right Side) */
/* ------------------------- */
.form-section {
    width: 50%;
    padding: 50px 70px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: transparent;
}

.form-wrapper {
    width: 100%;
    max-width: 420px;
    /* Premium "Black Glass" look */
    background: linear-gradient(145deg, rgba(20, 30, 48, 0.7), rgba(10, 15, 25, 0.8));
    border: 1px solid var(--border-color);
    border-top: 1px solid rgba(255,255,255,0.1); /* Top highlight */
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 18px;
    box-shadow: 0 30px 70px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,255,255,0.05);
    padding: 32px 28px;
}

.form-wrapper h2 {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--text-main);
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

.input-group {
    margin-bottom: 20px;
}

.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-para);
    margin-bottom: 8px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-size: 11px; /* Smaller, sharper label */
}

.input-group .input-wrap { position: relative; }
.input-group .input-icon { 
    position: absolute; 
    left: 14px; 
    top: 50%; 
    transform: translateY(-50%); 
    font-size: 18px; 
    color: var(--text-muted); 
    transition: color 0.3s ease;
}

/* Premium Inputs: Darker "cut-out" look */
.input-group input {
    width: 100%;
    padding: 12px 15px 12px 44px;
    border: 1px solid rgba(255,255,255,0.05); /* Very subtle default border */
    border-radius: 12px;
    font-size: 16px;
    background: rgba(3, 7, 14, 0.6); /* Darker than container */
    color: var(--text-main);
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.4); /* Inner shadow for depth */
}

.input-group input:focus {
    outline: none;
    border-color: var(--osian-cyan);
    box-shadow: 0 0 0 1px var(--osian-cyan), 0 0 15px var(--osian-glow); /* Neon glow */
    background: rgba(3, 7, 14, 0.9);
}
.input-group input:focus + .input-icon { /* Icon lights up on focus if sibling selector allows, else keep as is */
    color: var(--osian-cyan);
}
.input-group:focus-within .input-icon {
    color: var(--osian-cyan);
}

.input-group input:hover {
    border-color: rgba(255,255,255,0.15);
}

.form-options {
    text-align: right;
    margin-bottom: 25px;
}

.forgot-password {
    font-size: 14px;
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.forgot-password:hover {
    text-decoration: none;
    color: var(--osian-mint);
    text-shadow: 0 0 8px var(--osian-glow);
}

/* Premium Button: Metallic Gradient */
.login-btn {
    width: 100%;
    padding: 14px 16px;
    border: none;
    border-radius: 14px;
    background: var(--osian-gradient);
    background-size: 150% auto;
    color: var(--osian-dark);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s ease;
    /* Top highlight + Drop shadow */
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 10px 24px rgba(95,251,241,0.2);
}

.login-btn:hover {
    background-position: right center;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 15px 30px rgba(95,251,241,0.4);
    transform: translateY(-2px);
}
.login-btn:active { 
    transform: translateY(1px); 
    box-shadow: 0 5px 10px rgba(95,251,241,0.2);
}

.social-separator {
    margin: 30px 0;
    text-align: center;
    color: var(--text-muted);
    position: relative;
}

.social-separator::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.1), transparent); /* Faded line */
    z-index: 1;
}

.social-separator span {
    background: transparent; /* Fix for gradient background */
    padding: 0 15px;
    position: relative;
    z-index: 2;
    color: var(--text-muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-login {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}

.social-icon {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 45px;
    height: 45px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 50%;
    text-decoration: none;
    color: var(--text-para);
    font-size: 20px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.02);
}

.social-icon:hover {
    background: var(--osian-gradient);
    border-color: transparent;
    color: var(--osian-dark);
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.register-link {
    text-align: center;
    font-size: 14px;
    color: var(--text-muted);
}

.register-link a {
    color: var(--osian-mint);
    font-weight: 600;
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
    color: var(--osian-cyan);
    text-shadow: 0 0 8px var(--osian-glow);
}

/* ------------------------- */
/* Responsive Design */
/* ------------------------- */
@media (max-width: 1024px) {
    .login-container { 
        width: 92%; 
        max-width: 980px; 
        height: auto; 
    }
    .form-section {
        padding: 40px;
    }
}

@media (max-width: 768px) {
    .login-container { 
        flex-direction: column; 
        height: auto; 
        width: 95%; 
        max-width: 520px; 
        margin: 20px auto;
        background: rgba(13, 22, 36, 0.8); /* Darker on mobile */
    }

    .info-section { 
        width: 100%; 
        height: auto; 
        padding: 28px;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        background: linear-gradient(180deg, rgba(79, 244, 232, 0.05), transparent);
    }

    .form-section { 
        width: 100%; 
        padding: 24px; 
    }
    
    .social-separator span {
         background: #0d1522; /* Fallback for transparency on mobile if needed */
    }
}

.form-illustration { 
    margin-top: 18px; 
    display: flex; 
    justify-content: center; 
}
.form-illustration img { 
    width: 160px; 
    height: auto; 
    filter: drop-shadow(0 12px 28px rgba(0,0,0,0.3));
    border-radius: 12px;
}

.otp-message {
    font-size: 15px;
    color: var(--text-para);
    margin-bottom: 20px;
    text-align: center;
    line-height: 1.5;
}

#otp-email {
    color: var(--osian-mint);
    font-weight: 600;
}

a, button {
    transition: all 0.3s ease;
}

.input-group input {
    transition: all 0.3s ease;
}

.login-container {
    animation: fadeIn 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both; /* Smoother animation */
}

@keyframes fadeIn {
    0% { opacity: 0; transform: translateY(15px); }
    100% { opacity: 1; transform: translateY(0); }
}

/* Specific overrides for Login Page structure */
.login-page { 
    background: var(--bg-main); 
    display: block; 
    overflow-y: auto; 
    -webkit-overflow-scrolling: touch; 
}
.login-page::before, .login-page::after { content: none; }

.login-page .login-container { 
    width: 960px; 
    max-width: 96%; 
    height: auto; 
    min-height: 80vh; 
    box-shadow: var(--shadow); 
    border-radius: 16px; 
    background: rgba(13, 22, 36, 0.6);
    border: 1px solid var(--bg-card-border);
}

.login-page .info-section { 
    background: linear-gradient(180deg, rgba(95,251,241,0.05) 0%, rgba(0,0,0,0) 100%);
    color: var(--text-main); 
}
.login-page .info-section::after { content: none; }

.login-page .info-content .logo-name { 
    font-weight: 700; 
    color: var(--text-main);
    background: var(--osian-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.login-page .info-content .slogan { 
    font-weight: 500; 
    color: var(--text-para); 
}
.login-page .form-section { 
    background: transparent; 
}
.login-page .form-wrapper { 
    background: rgba(10, 15, 24, 0.7); 
    border: 1px solid var(--border-color); 
    box-shadow: 0 8px 30px rgba(0,0,0,0.4); 
    border-radius: 16px; 
}
.login-page .input-group input { 
    background: rgba(4, 8, 15, 0.5); 
    border: 1px solid rgba(255,255,255,0.08); 
    color: var(--text-main);
}
.login-page .input-group input:focus { 
    border-color: var(--osian-cyan); 
    box-shadow: 0 0 10px var(--osian-glow); 
}
.login-page .input-group .input-icon { color: var(--text-muted); }
.login-page .forgot-password { color: var(--text-muted); }
.login-page .forgot-password:hover { color: var(--osian-mint); }

.login-page .register-link a { color: var(--osian-mint); }
.login-page .login-btn { 
    background: var(--osian-gradient);
    box-shadow: 0 8px 20px rgba(95,251,241,0.15); 
    color: var(--osian-dark);
}
.login-page .login-btn:hover { 
    background: linear-gradient(135deg, #86FDE8, #5FFBF1, #F9F586);
    box-shadow: 0 12px 28px rgba(134,253,232,0.35);
}
.login-page .form-hint { 
    font-size: 12px; 
    color: var(--text-muted); 
    margin-top: 8px; 
}
.error-text { 
    font-size: 12px; 
    color: #ff5f5f; 
    margin-top: 8px; 
    text-shadow: 0 0 5px rgba(255, 95, 95, 0.4);
}

/* Illustration card and brand copy */
.login-page .illustration-card { 
    background: rgba(13, 20, 34, 0.5); 
    border: 1px solid rgba(255,255,255,0.05); 
    border-radius: 18px; 
    box-shadow: 0 8px 24px rgba(0,0,0,0.2); 
    padding: 20px; 
    display: flex; 
    justify-content: center; 
    align-items: center; 
}
.login-page .illustration-img { 
    width: 100%; 
    max-width: 460px; 
    height: auto; 
    object-fit: contain; 
    border-radius: 12px; 
}
.login-page .brand-copy { 
    margin-top: 18px; 
    text-align: center; 
}
.login-page .brand-title { 
    font-size: 20px; 
    font-weight: 700; 
    color: var(--text-main); 
}
.login-page .brand-subtitle { 
    font-size: 14px; 
    color: var(--text-para); 
    margin-top: 6px; 
}

/* Mobile tweaks */
@media (max-width: 768px) {
  .login-page .login-container { 
    width: 100%; 
    max-width: 560px; 
    box-shadow: none; 
    border-radius: 0; 
    margin: 0;
    background: var(--bg-main);
  }
  .login-page .info-section { padding: 24px; }
  .login-page .illustration-img { max-width: 100%; }
  .login-page .form-section { padding: 20px; }
  .login-page .form-wrapper { border-radius: 12px; border: none; background: transparent; box-shadow: none;}
}

@media (max-width: 480px) {
  .login-page .info-section { padding: 16px; }
  .login-page .form-section { padding: 16px; }
  .login-page .brand-title { font-size: 18px; }
  .login-page .brand-subtitle { font-size: 13px; }
}

img { max-width: 100%; height: auto; }