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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0d1b2a;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-logo {
    font-size: 28px;
    font-weight: 700;
    color: #4db8ff;
    letter-spacing: 2px;
    margin-bottom: 32px;
    text-transform: uppercase;
}

.login-container {
    background: #112031;
    border: 1px solid #1e3a52;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    padding: 40px;
    width: 100%;
    max-width: 400px;
}

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

.login-header h1 {
    color: #ffffff;
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 6px;
}

.login-header p {
    color: #6a8da8;
    font-size: 14px;
}

.form-group {
    margin-bottom: 18px;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    color: #a0bcd0;
    font-weight: 500;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.form-group input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #1e3a52;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.2s ease;
    background: #0d1b2a;
    color: #e0eaf2;
}

.form-group input::placeholder {
    color: #3a5a72;
}

.form-group input:focus {
    outline: none;
    border-color: #4db8ff;
    box-shadow: 0 0 0 3px rgba(77, 184, 255, 0.12);
}

.form-group input.error {
    border-color: #e05c5c;
    box-shadow: 0 0 0 3px rgba(224, 92, 92, 0.1);
}

.error-message {
    color: #e05c5c;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.login-button {
    width: 100%;
    padding: 13px;
    background: #4db8ff;
    color: #0d1b2a;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 8px;
    letter-spacing: 0.5px;
}

.login-button:hover {
    background: #73c9ff;
}

.login-button:active {
    background: #3aa8ef;
}

.login-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.loading {
    display: none;
    width: 18px;
    height: 18px;
    border: 2px solid #0d1b2a;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
    margin: 0 auto;
}

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

.alert {
    padding: 11px 14px;
    border-radius: 7px;
    margin-bottom: 18px;
    font-size: 14px;
    display: none;
}

.alert.error {
    background: rgba(224, 92, 92, 0.12);
    color: #f08080;
    border: 1px solid rgba(224, 92, 92, 0.3);
}

.alert.success {
    background: rgba(77, 184, 255, 0.1);
    color: #4db8ff;
    border: 1px solid rgba(77, 184, 255, 0.25);
}

@media (max-width: 480px) {
    .login-container {
        padding: 28px 20px;
    }

    .login-header h1 {
        font-size: 20px;
    }
}
