body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen-Sans, Ubuntu, Cantarell, 'Helvetica Neue', sans-serif;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
    background: linear-gradient(135deg, #0f172a, #1e293b);
    color: #e2e8f0;
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 100px;
    background: linear-gradient(135deg, #0ea5e9, #6366f1, #8b5cf6);
    z-index: -1;
    border-radius: 0 0 30px 30px;
}

.login-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    z-index: 1;
}

.login-card {
    width: 100%;
    max-width: 500px;
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(2, 8, 20, 0.4);
    padding: 40px;
    animation: fadeIn 0.5s ease-out;
}

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

.login-header h1 {
    color: #ffffff;
    margin: 0 0 10px 0;
    font-weight: 700;
    font-size: 32px;
    font-family: 'Segoe UI', 'Helvetica Neue', sans-serif;
    letter-spacing: -0.5px;
    position: relative;
    padding-bottom: 15px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.login-header h1::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 4px;
    background: linear-gradient(90deg, #0ea5e9, #8b5cf6);
    border-radius: 2px;
}

.login-subtitle {
    color: #cbd5e1;
    font-size: 1em;
    margin: 0;
    opacity: 0.8;
}

.input-group {
    margin-bottom: 30px;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #cbd5e1;
    font-size: 0.95em;
}

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

.password-input-wrapper input {
    flex-grow: 1;
    padding: 16px 20px;
    padding-right: 50px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    font-size: 1em;
    transition: all 0.3s ease;
    background: rgba(15, 23, 42, 0.5);
    color: #e2e8f0;
    box-shadow: 0 4px 10px rgba(2, 8, 20, 0.2);
}

.password-input-wrapper input:focus {
    outline: none;
    border-color: #0ea5e9;
    box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
    background: rgba(15, 23, 42, 0.7);
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.password-toggle:hover {
    color: #e2e8f0;
    background: rgba(255, 255, 255, 0.1);
}

.login-actions {
    margin-bottom: 20px;
}

.login-btn {
    width: 100%;
    padding: 16px 24px;
    border: none;
    border-radius: 16px;
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    color: white;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    font-weight: 600;
    font-size: 1em;
    box-shadow: 0 4px 15px rgba(14, 165, 233, 0.3);
    position: relative;
    overflow: hidden;
}

.login-btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transform: translateX(-100%);
    transition: transform 0.6s ease;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(14, 165, 233, 0.4);
}

.login-btn:hover::after {
    transform: translateX(100%);
}

.login-btn:disabled {
    background: #475569;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.login-btn:disabled::after {
    display: none;
}

.login-footer {
    text-align: center;
    margin-top: 20px;
}

.hint {
    color: #94a3b8;
    font-size: 0.9em;
    margin-bottom: 15px;
}

.error-message {
    color: #ef4444;
    font-size: 0.9em;
    min-height: 20px;
    margin: 10px 0 0 0;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.error-message.show {
    opacity: 1;
}

.login-info {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.info-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.info-card h3 {
    color: #ffffff;
    margin: 0 0 10px 0;
    font-size: 1.1em;
    font-weight: 600;
}

.info-card p {
    color: #cbd5e1;
    font-size: 0.9em;
    line-height: 1.5;
    margin: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.5s ease-in-out;
}

@media (max-width: 768px) {
    .login-card {
        padding: 30px 20px;
        margin: 20px;
    }
    
    .login-header h1 {
        font-size: 28px;
    }
    
    body::before {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .login-card {
        padding: 25px 15px;
    }
    
    .login-header h1 {
        font-size: 24px;
    }
}