﻿/* Final Refined Styles for OneDigital Admin Portal */





* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
}

body {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    /* Darker overlay for better contrast against the white form */
    background: linear-gradient(rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.75)), url('https://images.unsplash.com/photo-1497366216548-37526070297c?auto=format&fit=crop&w=1920&q=80');
    background-size: cover;
    background-position: center;
}

.login-container {
    width: 920px;
    height: 560px;
    display: flex;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 30px 60px -12px rgba(0, 0, 0, 0.7);
}

/* --- Left Brand Side (OneDigital Theme) --- */
.brand-side {
    flex: 1.1;
    background: rgba(0, 32, 77, 0.9); /* Unified Deep Blue */
    backdrop-filter: blur(15px);
    display: flex;
    align-items: center;
    padding: 60px;
    color: white;
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
}

    /* Subtle inner glow for a "glass" effect */
    .brand-side::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.2);
        pointer-events: none;
    }

.brand-content {
    width: 100%;
    z-index: 2;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.logo-icon {
    background: #ff7a00; /* Brand Orange */
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 900;
    font-size: 24px;
    border-radius: 8px;
    color: white;
    box-shadow: 0 6px 15px rgba(255, 122, 0, 0.3);
}

.logo-text {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -1px;
}

.brand-side h1 {
    font-size: 36px;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.brand-side p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/* --- Right Form Side --- */
.form-side {
    flex: 1;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

.form-content {
    width: 100%;
    max-width: 340px;
}

h2 {
    color: #0f172a;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 6px;
}

.subtitle {
    color: #64748b;
    margin-bottom: 35px;
    font-size: 14px;
}

.input-group {
    margin-bottom: 24px;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

label {
    font-size: 11px;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 1px;
}

input[type="text"],
input[type="password"] {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #f8fafc;
    font-size: 14px;
    color: #1e293b;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Improvement: Lift and glow on focus */
input:focus {
    outline: none;
    background: #fff;
    border-color: #ff7a00;
    box-shadow: 0 4px 12px rgba(255, 122, 0, 0.1);
    transform: translateY(-1px);
}

.forgot-link {
    font-size: 11px;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

    .forgot-link:hover {
        color: #ff7a00;
    }

.login-btn {
    width: 100%;
    padding: 14px;
    background: #00204d; /* Matches Brand Blue */
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
    cursor: pointer;
    margin-top: 10px;
    transition: all 0.3s ease;
}

    .login-btn:hover {
        background: #001533;
        transform: translateY(-2px);
        box-shadow: 0 8px 20px rgba(0, 32, 77, 0.2);
    }

    .login-btn:active {
        transform: translateY(0);
    }

.checkbox-group {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: #475569;
    cursor: pointer;
    user-select: none;
}

input[type="checkbox"] {
    accent-color: #ff7a00; /* Colors checkbox orange */
    width: 17px;
    height: 17px;
    cursor: pointer;
}

::placeholder {
    color: #94a3b8;
    opacity: 0.6;
}
/* 1. The Error Message: Using a Burnt Crimson to match the Orange theme */
.text-danger {
    color: #be3800; /* A "Deep Orange-Red" that feels like your brand's warning state */
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    margin-top: 6px;
    display: block;
}

/* 2. The Input Box: "Warm" Validation State */
.input-validation-error {
    /* Uses a darker version of your brand orange for the border */
    border: 1.5px solid #be3800 !important;
    /* Uses a very pale 'peach' tint instead of 'pink' */
    background-color: #fffaf5 !important;
    transition: all 0.2s ease;
}

    /* 3. The Error Focus: Maintaining the Brand Glow */
    .input-validation-error:focus {
        box-shadow: 0 0 0 4px rgba(190, 56, 0, 0.1) !important;
        outline: none;
    }

/* The main overlay container */
#loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 15, 30, 0.7); /* Deep Navy tint for brand consistency */
    display: none; /* Controlled by JS */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.4s ease; /* This makes the 5000ms hide look smooth */
    opacity: 0;
}

/* Container for Icon + Text */
.loader-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* The Blinking Branding Icon */
.loader-icon {
    width: 60px;
    height: 60px;
    background: #ff7a00; /* OneDigital Orange */
    color: #fff;
    font-size: 30px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(255, 122, 0, 0.4);
    animation: blink-pulse 1s ease-in-out infinite;
}

/* Dynamic Text Styling */
#dynamic-status {
    margin-top: 20px;
    color: #ffffff;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    /* Keeps text readable over the sharp background image */
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
    transition: all 0.3s ease;
}

/* Animation for the Blink */
@keyframes blink-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(0.92);
        opacity: 0.7;
    }
}
