/* Import Premium Typography */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&display=swap');

:root {
    --bg-gradient: linear-gradient(135deg, #0f0c20 0%, #15102a 50%, #06040d 100%);
    --card-bg: rgba(25, 20, 45, 0.45);
    --card-border: rgba(255, 255, 255, 0.08);
    --card-glow: rgba(138, 43, 226, 0.15);
    
    --primary-glow: linear-gradient(90deg, #8a2be2, #4a00e0);
    --accent-teal: #00f2fe;
    --accent-purple: #9d4edd;
    
    --text-main: #f3efff;
    --text-muted: #a5a1b8;
    
    --input-bg: rgba(10, 5, 20, 0.5);
    --input-border: rgba(255, 255, 255, 0.1);
    --input-border-focus: #9d4edd;
    
    --error-bg: rgba(255, 75, 75, 0.15);
    --error-border: rgba(255, 75, 75, 0.4);
    --error-text: #ff6b6b;
}

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

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

/* Background Animated Blobs */
body::before, body::after {
    content: '';
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    filter: blur(100px);
    z-index: 0;
    opacity: 0.45;
    animation: float 12s infinite alternate ease-in-out;
}

body::before {
    background: var(--accent-purple);
    top: -10%;
    left: 10%;
}

body::after {
    background: var(--accent-teal);
    bottom: -10%;
    right: 10%;
    animation-delay: -6s;
}

@keyframes float {
    0% { transform: translateY(0px) scale(1); }
    100% { transform: translateY(40px) scale(1.1); }
}

/* Main Container */
.login-container {
    width: 100%;
    max-width: 440px;
    padding: 24px;
    z-index: 10;
}

/* Glassmorphic Login Card */
.login-card {
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), 
                0 0 50px var(--card-glow);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    text-align: center;
    transform: translateY(0);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.login-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 25px 45px rgba(0, 0, 0, 0.45), 
                0 0 60px rgba(138, 43, 226, 0.25);
}

/* Logo Design */
.logo-container {
    margin-bottom: 28px;
    display: flex;
    justify-content: center;
}

.logo-eye {
    position: relative;
    width: 72px;
    height: 72px;
    background: radial-gradient(circle, rgba(157,78,221,0.2) 0%, rgba(10,5,20,0.8) 100%);
    border: 2px solid var(--accent-purple);
    border-radius: 50% 0 50% 0;
    transform: rotate(45deg);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 0 20px rgba(157, 78, 221, 0.4);
    animation: eye-pulse 4s infinite alternate;
}

.logo-eye::after {
    content: '';
    width: 28px;
    height: 28px;
    background: radial-gradient(circle, var(--accent-teal) 0%, var(--accent-purple) 100%);
    border-radius: 50%;
    box-shadow: 0 0 15px var(--accent-teal);
}

@keyframes eye-pulse {
    0% {
        box-shadow: 0 0 15px rgba(157, 78, 221, 0.3);
        border-color: var(--accent-purple);
    }
    100% {
        box-shadow: 0 0 30px rgba(0, 242, 254, 0.6);
        border-color: var(--accent-teal);
    }
}

/* Header Text */
h1 {
    font-size: 28px;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin-bottom: 8px;
    background: linear-gradient(135deg, #ffffff 30%, var(--text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 30px;
    line-height: 1.5;
}

/* Form Styling */
.form-group {
    text-align: left;
    margin-bottom: 24px;
    position: relative;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
    color: var(--text-muted);
    padding-left: 4px;
}

.input-wrapper {
    position: relative;
}

.input-field {
    width: 100%;
    padding: 16px 20px;
    border-radius: 14px;
    background: var(--input-bg);
    border: 1px solid var(--input-border);
    color: var(--text-main);
    font-family: inherit;
    font-size: 15px;
    outline: none;
    transition: all 0.3s ease;
}

.input-field:focus {
    border-color: var(--input-border-focus);
    background: rgba(10, 5, 20, 0.7);
    box-shadow: 0 0 15px rgba(157, 78, 221, 0.25),
                inset 0 0 10px rgba(157, 78, 221, 0.1);
}

.input-field::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

/* Error Banner */
.error-banner {
    display: none;
    background: var(--error-bg);
    border: 1px solid var(--error-border);
    border-radius: 12px;
    padding: 12px 16px;
    color: var(--error-text);
    font-size: 13.5px;
    margin-bottom: 24px;
    text-align: left;
    align-items: center;
    gap: 10px;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-6px); }
    75% { transform: translateX(6px); }
}

/* Button */
.submit-btn {
    width: 100%;
    padding: 16px;
    border: none;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--accent-purple) 0%, #4a00e0 100%);
    color: #ffffff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(138, 43, 226, 0.3);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: 0.5s;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(138, 43, 226, 0.5), 
                0 0 15px var(--accent-teal);
    background: linear-gradient(135deg, #ae5aff 0%, #5a0cf0 100%);
}

.submit-btn:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(138, 43, 226, 0.3);
}

/* Help Footer */
.help-text {
    margin-top: 30px;
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.6;
}

.code-badge {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.05);
    padding: 2px 6px;
    border-radius: 6px;
    font-family: monospace;
    color: var(--accent-teal);
    font-size: 11px;
}
