* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Inter, system-ui, sans-serif;
}

body {
    min-height: 100vh;
    background: #0d0f12;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    width: 100%;
    max-width: 420px;
    padding: 0 20px;
}

.login-form {
    width: 100%;
    background: rgba(255,255,255,0.04);
    padding: 32px;
    border-radius: 18px;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.45);
    border: 1px solid rgba(255,255,255,0.06);
}

.login-form h1 {
    font-size: 24px;
    margin-bottom: 22px;
    color: #f5f5f5;
    text-align: left;
}

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

.input-group label {
    display: block;
    margin-bottom: 6px;
    color: #a5acb8;
    font-size: 14px;
}

.input-group input {
    width: 100%;
    padding: 14px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.12);
    border-radius: 12px;
    color: #fff;
    font-size: 15px;
    outline: none;
}

.input-group input::placeholder {
    color: rgba(255,255,255,0.35);
}

.input-error {
    color: #ffd7d7;
    font-size: 12px;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.25s ease, opacity 0.25s ease;
    opacity: 0;
}

.input-error.show {
    margin-top: 2px;
    max-height: 50px;
    opacity: 1;
}

.input-error-container {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

input.invalid {
    border-color: #ff6b6b !important;
}

.error-message {
    margin-top: 10px;
    margin-bottom: 6px;
    padding: 10px 12px;
    border-radius: 12px;
    font-size: 14px;
    background: rgba(255,255,255,0.08);
    color: #ffd7d7;
    text-align: center;
}

.login-form button {
    width: 100%;
    padding: 12px;
    border-radius: 12px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    cursor: pointer;
    font-weight: 600;
    font-size: 15px;
    margin-top: 6px;
    transition: 0.2s;
}

.login-form button:hover {
    background: rgba(255,255,255,0.3);
}

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

.register-link {
    margin-top: 14px;
    text-align: center;
    font-size: 14px;
}

.register-link a {
    color: #d1d5db;
    text-decoration: none;
}

.register-link a:hover {
    text-decoration: underline;
}