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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Inter', 'Segoe UI', Roboto, sans-serif;
    background-color: #0E1116;
    background-image: 
        radial-gradient(at 20% 0%, rgba(239, 68, 68, 0.08) 0px, transparent 50%),
        radial-gradient(at 80% 100%, rgba(239, 68, 68, 0.05) 0px, transparent 50%),
        radial-gradient(at 50% 50%, rgba(0, 255, 136, 0.03) 0px, transparent 50%);
    color: #FFFFFF;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

body::before {
    content: '';
    position: absolute;
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(239, 68, 68, 0.15) 0%, transparent 70%);
    top: -150px;
    right: -150px;
    filter: blur(40px);
    z-index: 0;
}

body::after {
    content: '';
    position: absolute;
    width: 600px;
    height: 600px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 255, 136, 0.08) 0%, transparent 70%);
    bottom: -100px;
    left: -100px;
    filter: blur(40px);
    z-index: 0;
}

.login-container {
    width: 100%;
    max-width: 400px;
    position: relative;
    z-index: 1;
}

.login-box {
    background: rgba(22, 26, 34, 0.35);
    backdrop-filter: blur(40px) saturate(180%);
    -webkit-backdrop-filter: blur(40px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 36px 32px;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.6),
        0 0 100px rgba(239, 68, 68, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        inset 0 -1px 0 rgba(255, 255, 255, 0.03);
}

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

.login-logo {
    display: flex;
    justify-content: center;
    margin-bottom: 16px;
}

.logo-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    margin: 0 auto;
}

.logo-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.brand-red {
    color: #EF4444;
}

.login-header h1 {
    font-size: 20px;
    font-weight: 600;
    color: #FFFFFF;
    margin-bottom: 6px;
    letter-spacing: -0.3px;
}

.login-header p {
    font-size: 13px;
    color: #8B92A5;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 12px;
    color: #8B92A5;
    font-weight: 500;
    letter-spacing: 0.3px;
}

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

.input-icon {
    position: absolute;
    left: 14px;
    color: #8B92A5;
    pointer-events: none;
    transition: color 0.2s;
}

.input-wrapper input {
    width: 100%;
    padding: 13px 14px 13px 42px;
    background: rgba(14, 17, 22, 0.3);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #FFFFFF;
    border-radius: 10px;
    font-size: 14px;
    transition: all 0.2s;
    font-family: inherit;
}

.input-wrapper input:focus {
    outline: none;
    border-color: #EF4444;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1);
    background: rgba(14, 17, 22, 0.7);
}

.input-wrapper input:focus ~ .input-icon {
    color: #EF4444;
}

.input-wrapper input::placeholder {
    color: #5F6878;
}

.toggle-password {
    position: absolute;
    right: 14px;
    background: none;
    border: none;
    color: #8B92A5;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px;
    transition: color 0.2s;
}

.toggle-password:hover {
    color: #EF4444;
}

.error-message {
    background-color: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #EF4444;
    padding: 12px 14px;
    border-radius: 10px;
    font-size: 13px;
    display: none;
    text-align: center;
}

.error-message.show {
    display: block;
    animation: shake 0.4s;
}

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

.btn-submit {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #EF4444, #DC2626);
    color: #FFFFFF;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: inherit;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25);
    margin-top: 4px;
}

.btn-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.35);
}

.btn-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.spinner {
    animation: spin 1s linear infinite;
}

.spinner.hidden {
    display: none;
}

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

.login-footer {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
}

.login-footer p {
    font-size: 11px;
    color: #5F6878;
}

@media (max-width: 480px) {
    .login-box {
        padding: 28px 22px;
    }
    .login-header h1 {
        font-size: 18px;
    }
}