:root {
    --primary: #0891b2;
    --primary-hover: #0e7490;
    --primary-glow: rgba(8, 145, 178, 0.25);
    --accent: #2563eb;
    --bg-base: #f1f5f9;
    --card-bg: rgba(255, 255, 255, 0.75);
    --card-border: rgba(255, 255, 255, 0.9);
    --input-bg: rgba(255, 255, 255, 0.9);
    --input-border: #cbd5e1;
    --input-focus: #0891b2;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --text-dim: #94a3b8;
    --error-bg: rgba(239, 68, 68, 0.08);
    --error-border: rgba(239, 68, 68, 0.25);
    --error-text: #dc2626;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle at 15% 15%, #e0f2fe 0%, #f8fafc 50%, #f1f5f9 100%);
    color: var(--text-main);
    overflow-x: hidden;
    position: relative;
    padding: 24px;
}

/* Ambient Glow & Grid Background */
.ambient-glow {
    position: fixed;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    z-index: 0;
}

.glow-orb-1 {
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(14, 165, 233, 0.2) 0%, rgba(14, 165, 233, 0) 70%);
    top: -120px;
    left: -100px;
    filter: blur(50px);
    animation: floatOrb 14s ease-in-out infinite alternate;
}

.glow-orb-2 {
    position: absolute;
    width: 550px;
    height: 550px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, rgba(99, 102, 241, 0) 70%);
    bottom: -120px;
    right: -80px;
    filter: blur(50px);
    animation: floatOrb2 16s ease-in-out infinite alternate;
}

.grid-pattern {
    position: absolute;
    inset: 0;
    background-image: 
        linear-gradient(to right, rgba(15, 23, 42, 0.04) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
    background-size: 36px 36px;
    mask-image: radial-gradient(ellipse at center, black 45%, transparent 85%);
    -webkit-mask-image: radial-gradient(ellipse at center, black 45%, transparent 85%);
}

@keyframes floatOrb {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(80px, 60px) scale(1.12); }
}

@keyframes floatOrb2 {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(-70px, -60px) scale(1.1); }
}

/* Light Glassmorphic Container Card */
.login-card {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 440px;
    background: var(--card-bg);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid var(--card-border);
    border-radius: 26px;
    padding: 42px 38px;
    box-shadow: 
        0 20px 45px -12px rgba(15, 23, 42, 0.1),
        0 4px 12px -2px rgba(15, 23, 42, 0.04),
        inset 0 1px 1px 0 rgba(255, 255, 255, 0.95);
    animation: slideIn 0.7s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(22px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Logo & Header */
.brand-header {
    text-align: center;
    margin-bottom: 32px;
}

.brand-logo-container {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 26px;
    background: linear-gradient(145deg, #090e1a 0%, #1e293b 100%);
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 
        0 14px 28px -6px rgba(15, 23, 42, 0.22),
        0 4px 10px -2px rgba(15, 23, 42, 0.1),
        inset 0 1px 1px rgba(255, 255, 255, 0.18);
    margin-bottom: 18px;
    transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.brand-logo-container:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 18px 34px -6px rgba(15, 23, 42, 0.28),
        inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

.brand-logo {
    height: 40px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
    transition: transform 0.3s ease;
}

.brand-logo-container:hover .brand-logo {
    transform: scale(1.05);
}

.brand-title {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--text-main);
    margin-bottom: 6px;
}

.brand-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    font-weight: 400;
}

/* Error Box */
.error-container {
    margin-bottom: 24px;
    padding: 12px 16px;
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    border-radius: 12px;
    color: var(--error-text);
    font-size: 13px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.error-container svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    margin-top: 2px;
}

.error-container ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

/* Form Controls */
.form-group {
    margin-bottom: 20px;
    position: relative;
}

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin-bottom: 8px;
    letter-spacing: 0.01em;
}

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

.input-icon {
    position: absolute;
    left: 14px;
    color: var(--text-dim);
    pointer-events: none;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.input-wrapper input {
    width: 100%;
    height: 48px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    border-radius: 14px;
    padding: 0 44px 0 42px;
    color: var(--text-main);
    font-size: 14px;
    outline: none;
    transition: all 0.2s ease;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.02);
}

.input-wrapper input::placeholder {
    color: var(--text-dim);
}

.input-wrapper input:focus {
    border-color: var(--input-focus);
    background: #ffffff;
    box-shadow: 0 0 0 4px var(--primary-glow);
}

.input-wrapper input:focus ~ .input-icon {
    color: var(--primary);
}

/* Password Toggle Button */
.toggle-password {
    position: absolute;
    right: 14px;
    background: transparent;
    border: none;
    color: var(--text-dim);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    border-radius: 6px;
    transition: color 0.2s ease;
}

.toggle-password:hover {
    color: var(--text-main);
}

.field-error {
    color: var(--error-text);
    font-size: 12px;
    margin-top: 6px;
    padding-left: 4px;
}

/* Submit Button */
.btn-submit {
    width: 100%;
    height: 48px;
    margin-top: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    border: none;
    border-radius: 14px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    box-shadow: 0 8px 22px -4px rgba(8, 145, 178, 0.4);
    transition: all 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 26px -4px rgba(8, 145, 178, 0.52);
    filter: brightness(1.04);
}

.btn-submit:active {
    transform: translateY(0);
    box-shadow: 0 4px 14px -2px rgba(8, 145, 178, 0.35);
}

.btn-submit svg {
    transition: transform 0.2s ease;
}

.btn-submit:hover svg {
    transform: translateX(3px);
}

.btn-submit:disabled {
    opacity: 0.8;
    cursor: not-allowed;
    transform: none;
}

/* Card Footer */
.card-footer {
    margin-top: 28px;
    text-align: center;
    border-top: 1px solid rgba(203, 213, 225, 0.5);
    padding-top: 20px;
}

.footer-text {
    font-size: 12px;
    color: var(--text-muted);
}

.status-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #10b981;
    box-shadow: 0 0 8px rgba(16, 185, 129, 0.6);
    margin-right: 6px;
}
