body {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
}

.login-card {
    background-color: var(--bg-card);
    padding: 2.5rem;
    border-radius: 15px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    width: 100%;
    max-width: 400px;
    text-align: center;
    transition: background-color 0.3s;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--text-title);
    margin-bottom: 0.5rem;
}

.subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.form-group {
    text-align: left;
    margin-bottom: 1.5rem;
}

label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-title);
}

input {
    width: 100%;
    padding: 0.8rem;
    border: 1.5px solid var(--input-border);
    background-color: var(--bg-body);
    color: var(--text-main);
    border-radius: 10px;
    font-size: 1rem;
    transition: border-color 0.2s, background-color 0.3s, color 0.3s;
    outline: none;
}

input:focus {
    border-color: var(--primary);
}

button#submitBtn {
    width: 100%;
    padding: 12px;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

button#recoveryRequestBtn,
button#recoveryConfirmBtn {
    width: 100%;
    padding: 12px;
    background-color: var(--primary);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

button#submitBtn:hover {
    background-color: var(--primary-dark);
}

button#recoveryRequestBtn:hover,
button#recoveryConfirmBtn:hover {
    background-color: var(--primary-dark);
}

.error-message {
    color: #ff5252;
    font-size: 0.85rem;
    margin-top: 1rem;
    display: none;
}

.link-button {
    background: transparent;
    border: none;
    color: var(--primary);
    font-size: 0.9rem;
    margin-top: 0.75rem;
    cursor: pointer;
    text-decoration: underline;
}

.password-recovery-panel {
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid var(--input-border);
    border-radius: 12px;
    background-color: var(--bg-body);
    text-align: left;
}

.password-recovery-panel h3 {
    margin: 0;
    font-size: 1rem;
    color: var(--text-title);
}

.password-recovery-description {
    margin: 0.4rem 0 1rem 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.recovery-form {
    margin-top: 0.75rem;
}

.recovery-message {
    margin: 0.75rem 0 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.recovery-message.error {
    color: #ff5252;
}

.recovery-message.success {
    color: #0f9d58;
}

/* Google Login Button */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px;
    background-color: #fff;
    color: #444;
    border: 1px solid #ddd;
    border-radius: 10px;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s;
    box-sizing: border-box;
}

.btn-google:hover {
    background-color: #f8f8f8;
    border-color: #ccc;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.btn-google i {
    color: #4285F4;
}

.dark-mode .btn-google {
    background-color: #2c2f48;
    color: #f6f6f6;
    border-color: #3d415e;
}

.dark-mode .btn-google:hover {
    background-color: #34385a;
}

.loading {
    opacity: 0.7;
    pointer-events: none;
}

.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: 2px solid var(--primary);
    color: var(--primary);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    background-color: var(--primary);
    color: var(--white);
}

@media (max-width: 480px) {
    .login-card {
        padding: 1.5rem;
        width: 90%;
    }
}
