/* HubFinance Login CSS */

:root {
    --color-primary: #2c3e50;
    --color-secondary: #34495e;
    --color-accent: #3498db;
}

html, body {
    height: 100%;
}

.login-page {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.login-container {
    width: 100%;
    max-width: 400px;
    padding: 1rem;
}

.login-box {
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    padding: 2.5rem;
    opacity: 0;
    animation: fadeIn 0.5s ease forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-box.fade-in {
    opacity: 1;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    max-width: 100px;
    height: auto;
    margin-bottom: 1rem;
}

.login-header h1 {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.login-header .tagline {
    color: #7f8c8d;
    margin: 0;
    font-size: 0.95rem;
}

/* Alert */
.alert {
    padding: 1rem;
    border-radius: 6px;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.alert i {
    font-size: 1.2rem;
}

/* Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

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

.form-group label {
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.input-group {
    display: flex;
    align-items: center;
    border: 2px solid #ecf0f1;
    border-radius: 6px;
    overflow: hidden;
    background: white;
    transition: all 0.3s ease;
}

.input-group:focus-within {
    border-color: var(--color-accent);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.input-group i {
    padding: 0.75rem;
    color: #7f8c8d;
    background: #f8f9fa;
    border-right: 2px solid #ecf0f1;
    font-size: 1rem;
}

.input-group input {
    flex: 1;
    border: none;
    padding: 0.75rem;
    font-size: 0.95rem;
    background: transparent;
}

.input-group input::placeholder {
    color: #bdc3c7;
}

.input-group input:focus {
    outline: none;
}

/* Button */
.btn-block {
    width: 100%;
    padding: 0.85rem;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    transition: all 0.3s ease;
}

.btn-primary {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-secondary) 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

/* Footer */
.login-footer {
    text-align: center;
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ecf0f1;
}

.forgot-password {
    color: var(--color-accent);
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s;
}

.forgot-password:hover {
    text-decoration: underline;
    color: var(--color-primary);
}

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

    .login-header h1 {
        font-size: 1.5rem;
    }

    .login-footer {
        font-size: 0.85rem;
    }
}
