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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.login-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('bg.png') center center / cover no-repeat;
    z-index: 0;
}

.login-container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 380px;
    padding: 2rem;
}

.login-logo {
    margin-bottom: 2.5rem;
}

.login-logo img {
    width: 220px;
    height: auto;
}

.login-form {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Floating Label Input */
.floating-group {
    position: relative;
    width: 100%;
}

/* Default state */
.floating-group input {
    display: flex;
    align-items: center;
    width: 100%;
    height: 48px;
    padding: 12px;
    gap: 10px;
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 400;
    color: #1A1A1A;
    background: #FFFFFF;
    border: 1px solid transparent;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.2s ease, padding 0.2s ease;
}

/* Focus state */
.floating-group input:focus {
    padding: 20px 12px 6px 12px;
    border: 1px solid #7DA0FF;
}

/* Typed state (has value, no focus) */
.floating-group input:not(:placeholder-shown):not(:focus) {
    padding: 20px 12px 6px 12px;
}

/* Label as placeholder */
.floating-group label {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    font-weight: 400;
    color: #9B9B9B;
    pointer-events: none;
    transition: all 0.2s ease;
}

/* Float label up when focused or has value */
.floating-group input:focus + label,
.floating-group input:not(:placeholder-shown) + label {
    top: 6px;
    transform: translateY(0);
    font-size: 0.6875rem;
    font-weight: 500;
    color: #6B6B6B;
}

/* Button */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.5rem 1.5rem;
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1.25;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.15s ease, transform 0.1s ease;
    text-decoration: none;
    white-space: nowrap;
}

.btn:active:not(:disabled) {
    transform: scale(0.98);
}

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

.btn--primary {
    background-color: #5F86F2;
    color: #FFFFFF;
}

.btn--primary:hover:not(:disabled) {
    background-color: #7DA0FF;
}

.btn--light {
    background-color: rgba(255, 255, 255, 0.95);
    color: #1A1A1A;
}

.btn--light:hover:not(:disabled) {
    background-color: #FFFFFF;
}

.btn--block {
    width: 100%;
    padding: 0.875rem;
    margin-top: 0.5rem;
}

/* Error Alert */
.alert-error {
    width: 100%;
    background: rgba(248, 113, 113, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(248, 113, 113, 0.3);
    color: #FFFFFF;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    text-align: center;
}

/* Success Alert */
.alert-success {
    width: 100%;
    background: rgba(72, 163, 78, 0.15);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(72, 163, 78, 0.3);
    color: #FFFFFF;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.875rem;
    text-align: center;
}

/* Forgot Link */
.forgot-link {
    margin-top: 1.25rem;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.8125rem;
    transition: color 0.15s ease;
}

.forgot-link:hover {
    color: #FFFFFF;
}

/* Responsive */
@media (max-width: 480px) {
    .login-container {
        padding: 1.5rem;
    }

    .login-logo img {
        width: 180px;
    }
}
