/* 
   ========================================
   MODERN NEUMORPHISM 2026 STYLES
   Premium Login Theme
   ========================================
*/

:root {
    --bg-color: #E0E5EC;
    --text-main: #4A5568;
    --text-light: #A0AEC0;
    --accent: #6C63FF; /* Purple Luxo */
    --danger: #e53e3e;
    --shadow-light: #ffffff;
    --shadow-dark: #a3b1c6;
    --radius-main: 24px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    color: var(--text-main);
}

/* Background Gradient Blobs (Subtle) */
body::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 10% 20%, rgba(108, 99, 255, 0.05) 0%, transparent 20%),
                radial-gradient(circle at 90% 80%, rgba(108, 99, 255, 0.05) 0%, transparent 20%);
    z-index: -1;
}

/* Main Container */
.login-container {
    width: 100%;
    max-width: 400px;
    padding: 20px;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Card - Extruded Look */
.neu-card {
    background-color: var(--bg-color);
    border-radius: var(--radius-main);
    padding: 50px 40px;
    /* Dual Shadow for Extruded 3D Effect */
    box-shadow: 
        20px 20px 60px var(--shadow-dark), 
        -20px -20px 60px var(--shadow-light);
    border: 1px solid rgba(255,255,255,0.4);
}

/* Header */
.login-header {
    text-align: center;
    margin-bottom: 40px;
}

/* Logo Area - Inset Look */
.brand-logo {
    width: 80px;
    height: 80px;
    background: var(--bg-color);
    border-radius: 50%;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-size: 32px;
    /* Inset Shadow for Logo */
    box-shadow: 
        inset 6px 6px 12px var(--shadow-dark), 
        inset -6px -6px 12px var(--shadow-light);
}

.brand-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.brand-subtitle {
    font-size: 14px;
    color: var(--text-light);
    font-weight: 400;
}

/* Form Group */
.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-label {
    display: block;
    margin-bottom: 12px;
    margin-left: 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-main);
    opacity: 0.7;
}

/* Input Container */
.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Image/Icon in Input */
.input-icon {
    position: absolute;
    left: 20px;
    color: var(--text-light);
    font-size: 18px;
    z-index: 10;
    transition: color 0.3s ease;
    pointer-events: none;
}

/* Input Field - Inset Look */
.neu-input {
    width: 100%;
    padding: 18px 20px 18px 55px; /* Padding left for icon */
    border: none;
    outline: none;
    background: var(--bg-color);
    border-radius: 16px;
    font-size: 15px;
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    font-weight: 500;
    /* Inset Shadow creates "hole" effect */
    box-shadow: 
        inset 6px 6px 12px var(--shadow-dark), 
        inset -6px -6px 12px var(--shadow-light);
    transition: all 0.3s ease;
}

.neu-input::placeholder {
    color: var(--text-light);
    opacity: 0.6;
}

/* Focus State */
.neu-input:focus {
    box-shadow: 
        inset 8px 8px 16px var(--shadow-dark), 
        inset -8px -8px 16px var(--shadow-light),
        0 0 0 2px rgba(108, 99, 255, 0.1); /* Subtle accent ring */
}

.neu-input:focus + .input-icon {
    color: var(--accent);
}

/* Error State */
.neu-input.input-error {
    box-shadow: 
        inset 6px 6px 12px var(--shadow-dark), 
        inset -6px -6px 12px var(--shadow-light),
        0 0 5px rgba(229, 62, 62, 0.2);
}

.neu-input.input-error + .input-icon {
    color: var(--danger);
}

/* Password Toggle */
.password-toggle {
    position: absolute;
    right: 20px;
    background: none;
    border: none;
    color: var(--text-light);
    cursor: pointer;
    font-size: 16px;
    transition: color 0.3s;
    padding: 0;
}

.password-toggle:hover {
    color: var(--text-main);
}

/* Button - Extruded */
.btn-login {
    width: 100%;
    padding: 18px;
    border: none;
    outline: none;
    border-radius: 50px;
    background: var(--bg-color);
    color: var(--accent);
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 15px;
    /* Extruded Button Shadow */
    box-shadow: 
        9px 9px 18px var(--shadow-dark), 
        -9px -9px 18px var(--shadow-light);
    transition: all 0.3s ease;
}

.btn-login:hover {
    transform: translateY(-2px);
    color: #5146e6;
}

.btn-login:active {
    /* Pressed Button State (Inset) */
    transform: translateY(1px);
    box-shadow: 
        inset 4px 4px 8px var(--shadow-dark), 
        inset -4px -4px 8px var(--shadow-light);
}

.btn-login:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Error Alert - Inset Panel */
.alert-error {
    background-color: var(--bg-color);
    color: var(--danger);
    padding: 15px 20px;
    border-radius: 12px;
    margin-bottom: 25px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    /* Inset Look for Error */
    box-shadow: 
        inset 4px 4px 8px var(--shadow-dark), 
        inset -4px -4px 8px var(--shadow-light);
    border-left: 4px solid var(--danger);
    animation: shake 0.4s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Footer */
.login-footer {
    text-align: center;
    margin-top: 30px;
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
}

.login-footer a {
    color: var(--accent);
    text-decoration: none;
}

.login-footer a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 480px) {
    .neu-card {
        padding: 40px 25px;
    }
    
    .brand-title {
        font-size: 24px;
    }
}