/* ============================================
   SOFT MODERN UI - USER FRIENDLY THEME
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Outfit:wght@400;600;800&display=swap');

:root {
    --bg-dark: #0f111a;
    --card-bg: rgba(30, 41, 59, 0.5);
    --border-color: rgba(255, 255, 255, 0.08);
    --accent-blue: #3b82f6;
    --text-primary: #f8fafc;
    --text-secondary: #94a3b8;
    --soft-glow: rgba(59, 130, 246, 0.15);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body,
html {
    /* Allow dashboards to scroll while keeping the full-viewport backdrop */
    min-height: 100%;
    width: 100%;
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-primary);
    overflow-x: hidden;
    overflow-y: auto;
}

/* Base Layout */
.login-container {
    display: flex;
    height: 100vh;
    width: 100vw;
    background: radial-gradient(circle at 0% 0%, #1e293b 0%, #0f111a 100%);
    position: relative;
}

/* Subtle background particles effect */
.login-container::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(1px 1px at 20px 30px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 40px 70px, #fff, rgba(0, 0, 0, 0)),
        radial-gradient(1px 1px at 50px 160px, #fff, rgba(0, 0, 0, 0));
    background-repeat: repeat;
    background-size: 200px 200px;
    opacity: 0.1;
    pointer-events: none;
}

/* Left Section: Branding */
.login-info-side {
    flex: 1.2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 10% 8%;
    z-index: 2;
}

.brand-wrapper {
    max-width: 500px;
    animation: fadeInUp 0.8s ease-out;
}

.brand-logo-container {
    margin-bottom: 2rem;
    display: inline-flex;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.brand-logo-container img {
    height: 48px;
    width: auto;
}

.brand-title {
    font-family: 'Outfit', sans-serif;
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, #fff 0%, #94a3b8 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.brand-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.feature-list {
    display: grid;
    gap: 1.2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    transition: transform 0.3s ease;
}

.feature-item:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.05);
}

.feature-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--soft-glow);
    border-radius: 8px;
    color: var(--accent-blue);
    font-size: 0.9rem;
}

/* Right Section: Form */
.login-form-side {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.01);
    backdrop-filter: blur(5px);
    border-left: 1px solid var(--border-color);
    z-index: 2;
}

.login-card {
    width: 100%;
    max-width: 420px;
    padding: 2.5rem;
    background: var(--card-bg);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    border: 1px solid var(--border-color);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h2 {
    font-size: 1.8rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.form-header p {
    color: var(--text-secondary);
    font-size: 0.95rem;
}

/* Input Styles */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 0.6rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    color: var(--text-secondary);
    font-size: 1rem;
}

.form-control {
    width: 100%;
    height: 52px;
    background: rgba(15, 17, 26, 0.4);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0 1rem 0 3rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: all 0.2s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--accent-blue);
    background: rgba(15, 17, 26, 0.6);
    box-shadow: 0 0 0 4px var(--soft-glow);
}

/* Auth Actions */
.form-options {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 1.5rem;
}

.forgot-link {
    font-size: 0.85rem;
    color: var(--accent-blue);
    text-decoration: none;
    transition: opacity 0.2s;
}

.forgot-link:hover {
    opacity: 0.8;
}

.btn-submit {
    width: 100%;
    height: 52px;
    background: var(--accent-blue);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(59, 130, 246, 0.4);
    background: #2563eb;
}

.form-footer {
    text-align: center;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.form-footer a {
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 600;
    margin-left: 0.5rem;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 968px) {
    .login-container {
        flex-direction: column;
        overflow-y: auto;
    }

    .login-info-side {
        padding: 60px 20px;
        align-items: center;
        text-align: center;
    }

    .brand-title {
        font-size: 2.5rem;
    }

    .login-form-side {
        padding: 20px;
        border-left: none;
        border-top: 1px solid var(--border-color);
    }

    .feature-list {
        display: none;
    }
}
