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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: #FDFDFD;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.login-wrapper {
    width: 100%;
    max-width: 400px;
}

.login-box {
    background-color: white;
    padding: 2rem;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.login-logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: #3B82F6;
    text-align: center;
    margin-bottom: 0.75rem;
    letter-spacing: 1px;
}

.login-title {
    font-size: 1.3rem;
    font-weight: 600;
    color: #1F2937;
    text-align: center;
    margin-bottom: 1.5rem;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

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

.form-group label {
    font-size: 0.85rem;
    font-weight: 500;
    color: #4B5563;
    margin-bottom: 0.4rem;
}

.form-input {
    padding: 0.7rem 0.9rem;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 0.95rem;
    transition: border-color 0.2s;
    background-color: #F9FAFB;
}

.form-input:focus {
    outline: none;
    border-color: #3B82F6;
    background-color: white;
}

.login-btn {
    background-color: #3B82F6;
    color: white;
    padding: 0.7rem;
    border: none;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
    margin-top: 0.5rem;
    position: relative;
    min-height: 44px;
}

.login-btn:hover {
    background-color: #2563EB;
}

.login-btn.loading {
    color: transparent;
}

.loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
    display: none;
}

.login-btn.loading .loader {
    display: block;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.error-message {
    color: #DC2626;
    font-size: 0.85rem;
    margin-top: 1rem;
    text-align: center;
    min-height: 1.25rem;
}

.login-footer {
    margin-top: 1.5rem;
    text-align: center;
    color: #6B7280;
    font-size: 0.85rem;
    padding-top: 1rem;
    border-top: 1px solid #E5E5E5;
}

@media (max-width: 480px) {
    .login-box {
        padding: 1.5rem;
    }
    
    .login-logo {
        font-size: 1.5rem;
    }
    
    .login-title {
        font-size: 1.2rem;
    }
    
    .form-input {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .login-btn {
        padding: 0.6rem;
        font-size: 0.9rem;
        min-height: 40px;
    }
}



.login-btn {
    position: relative;
}

.login-btn.loading .btn-text {
    visibility: hidden;
}

.login-btn.loading .loader {
    display: block;
}

.loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
    display: none;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}