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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    padding: 20px;
}

.login-wrapper {
    min-height: calc(100vh - 40px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-card {
    width: 100%;
    max-width: 460px;
    background: white;
    border-radius: 18px;
    box-shadow: 0 16px 60px rgba(0, 0, 0, 0.18);
    padding: 32px;
}

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

.login-header h1 {
    color: #232631;
    margin-bottom: 12px;
    font-size: 2em;
}

.login-header p {
    color: #5f6472;
    font-size: 15px;
    line-height: 1.6;
}

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

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

.form-group label {
    color: #444b5c;
    font-size: 14px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #d8deea;
    border-radius: 12px;
    font-size: 15px;
    color: #333;
    background: #f8f9fc;
    outline: none;
    transition: all 0.25s ease;
}

.form-group input:focus {
    border-color: #667eea;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.12);
}

.message-box {
    border-radius: 12px;
    padding: 14px 16px;
    font-size: 14px;
    line-height: 1.5;
}

.message-box.success {
    background: #e9f9ee;
    color: #17683a;
    border: 1px solid #9fe0b6;
}

.message-box.error {
    background: #feeeef;
    color: #b42318;
    border: 1px solid #f7b0b7;
}

.hidden {
    display: none !important;
}

.login-button {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.3);
}

.login-button:hover:not(:disabled) {
    transform: translateY(-1px);
}

.login-button:disabled {
    opacity: 0.75;
    cursor: not-allowed;
    box-shadow: none;
}

.button-loader {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

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

@media (max-width: 520px) {
    body {
        padding: 12px;
    }

    .login-wrapper {
        min-height: calc(100vh - 24px);
    }

    .login-card {
        padding: 24px 18px;
    }
}
