:root {
    /* Premium Corporate Dark Mode Palette */
    --bg-base: #0A0C10;
    --bg-surface: rgba(18, 22, 29, 0.7);
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-glow: rgba(0, 112, 243, 0.5);
    
    --text-main: #FFFFFF;
    --text-muted: #8B949E;
    
    --brand-primary: #0070F3;
    --brand-gradient: linear-gradient(135deg, #00F0FF 0%, #0057FF 100%);
    --error-red: #F85149;
    --error-bg: rgba(248, 81, 73, 0.1);
    
    --glass-blur: blur(20px);
    --shadow-soft: 0 8px 32px rgba(0, 0, 0, 0.4);
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-base);
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

/* Dynamic Background Glow */
.background-effects {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.15;
    animation: float 20s infinite ease-in-out alternate;
}

.orb-1 {
    width: 500px;
    height: 500px;
    background: #00F0FF;
    top: -200px;
    left: -100px;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: #0057FF;
    bottom: -300px;
    right: -100px;
    animation-delay: -10s;
}

@keyframes float {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(50px, 50px) scale(1.1); }
}

/* Glassmorphism Container */
.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    background: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: var(--shadow-soft);
    animation: fadeUp 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Header */
.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.logo h1 {
    font-size: 28px;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.logo h1 span {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

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

/* Form Elements */
.input-group {
    margin-bottom: 24px;
}

.input-group label {
    display: block;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 8px;
    color: var(--text-muted);
}

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

.input-icon {
    position: absolute;
    left: 16px;
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    transition: var(--transition-smooth);
}

input[type="email"],
input[type="password"] {
    width: 100%;
    background: rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 14px 16px 14px 44px;
    font-size: 15px;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    transition: var(--transition-smooth);
    outline: none;
}

input::placeholder {
    color: rgba(255, 255, 255, 0.2);
}

input:focus {
    border-color: var(--brand-primary);
    box-shadow: 0 0 0 4px rgba(0, 112, 243, 0.15);
    background: rgba(0, 0, 0, 0.4);
}

input:focus + .input-icon,
.input-wrapper:focus-within .input-icon {
    color: var(--brand-primary);
}

/* Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--text-muted);
    cursor: pointer;
    user-select: none;
}

.remember-me input {
    accent-color: var(--brand-primary);
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.forgot-password {
    color: var(--brand-primary);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: var(--transition-smooth);
}

.forgot-password:hover {
    text-decoration: underline;
    text-shadow: 0 0 8px rgba(0, 112, 243, 0.4);
}

/* Button */
.submit-btn {
    width: 100%;
    background: var(--brand-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    padding: 14px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition-smooth);
    display: flex;
    justify-content: center;
    align-items: center;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 112, 243, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

/* Loading State */
.submit-btn.loading .btn-text {
    opacity: 0;
}

.spinner {
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 0.8s linear infinite;
    opacity: 0;
    transition: var(--transition-smooth);
}

.submit-btn.loading .spinner {
    opacity: 1;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Error Message */
.error-message {
    display: none;
    align-items: center;
    gap: 10px;
    background: var(--error-bg);
    border: 1px solid rgba(248, 81, 73, 0.3);
    color: var(--error-red);
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 24px;
    font-size: 13px;
    font-weight: 500;
    animation: shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

.error-message.show {
    display: flex;
}

.error-message svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

@keyframes shake {
    10%, 90% { transform: translate3d(-1px, 0, 0); }
    20%, 80% { transform: translate3d(2px, 0, 0); }
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); }
    40%, 60% { transform: translate3d(4px, 0, 0); }
}

/* Footer */
.login-footer {
    margin-top: 32px;
    text-align: center;
    font-size: 12px;
    color: rgba(139, 148, 158, 0.6);
}
