/* Master Stylesheet for NetWorth Tracker */

/* ===== GLOBAL STYLES ===== */
body {
    background: linear-gradient(135deg, #1e3a8a 0%, #ea580c 100%);
    min-height: 100vh;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    margin: 0;
    padding: 0;
}

/* ===== CONTAINER LAYOUTS ===== */
.auth-container,
.reset-container,
.login-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card,
.reset-card,
.login-card {
    background: white;
    border: none;
    border-radius: 1rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    overflow: hidden;
    max-width: 500px;
    width: 100%;
    padding: 40px;
}

/* ===== GEN3RIC LABS LOGO ===== */
.gen3ric-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.gen3ric-logo img {
    height: auto;
    max-width: 100%;
}

.gen3ric-logo-small {
    width: 100px;
}

.gen3ric-logo-medium {
    width: 140px;
}

.gen3ric-logo-large {
    width: 180px;
}

.gen3ric-logo-navbar {
    width: 80px;
}

.gen3ric-logo-sidebar {
    width: 120px;
}

.gen3ric-logo-footer {
    width: 100px;
}

/* ===== BRAND HEADER ===== */
.brand-header {
    text-align: center;
    margin-bottom: 30px;
}

.brand-logo {
    font-size: 3rem;
    margin-bottom: 15px;
}

.brand-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #212529;
    margin: 0;
}

.brand-subtitle {
    font-size: 0.9rem;
    color: #6c757d;
    margin-top: 4px;
    font-weight: 500;
}

/* ===== PAGE TITLES ===== */
.auth-title,
.reset-title,
.login-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #212529;
    margin-bottom: 15px;
    text-align: center;
}

/* ===== DESCRIPTIONS ===== */
.auth-description,
.reset-description,
.login-description {
    color: #6c757d;
    font-size: 1rem;
    line-height: 1.5;
    margin-bottom: 30px;
    text-align: center;
}

/* ===== FORM STYLES ===== */
.form-label {
    font-size: 14px;
    font-weight: 600;
    color: #495057;
    margin-bottom: 8px;
}

.form-control {
    border-radius: 0.5rem;
    border: 1px solid #dee2e6;
    padding: 12px 16px;
    font-size: 16px;
    transition: border-color 0.15s ease-in-out;
    width: 100%;
    box-sizing: border-box;
}

.form-control:focus {
    border-color: #1e3a8a;
    box-shadow: 0 0 0 0.2rem rgba(30, 58, 138, 0.25);
    outline: none;
}

.form-control.is-invalid {
    border-color: #dc3545;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 0.25rem;
    font-size: 0.875rem;
    color: #dc3545;
}

/* ===== PASSWORD FIELD ===== */
.password-field {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    font-size: 16px;
}

.password-toggle:hover {
    color: #495057;
}

/* ===== BUTTON STYLES ===== */
.btn {
    border-radius: 0.5rem;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    text-align: center;
}

.btn-primary {
    background: linear-gradient(135deg, #1e3a8a 0%, #ea580c 100%);
    color: white;
    width: 100%;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1e40af 0%, #dc2626 100%);
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: white;
    text-decoration: none;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    width: 100%;
    margin-top: 10px;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    color: white;
    text-decoration: none;
}

.btn-outline-primary {
    border: 2px solid #1e3a8a;
    color: #1e3a8a;
    background: transparent;
}

.btn-outline-primary:hover {
    background: #1e3a8a;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-decoration: none;
}

/* ===== SOCIAL LOGIN BUTTONS ===== */
.btn-google {
    background: #4285f4;
    color: white;
    border: none;
}

.btn-google:hover {
    background: #357ae8;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-facebook {
    background: #1877f2;
    color: white;
    border: none;
}

.btn-facebook:hover {
    background: #166fe5;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn-apple {
    background: #000;
    color: white;
    border: none;
}

.btn-apple:hover {
    background: #333;
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* ===== ALERT STYLES ===== */
.alert {
    border-radius: 0.5rem;
    border: none;
    margin-bottom: 20px;
    font-size: 14px;
    padding: 12px 16px;
}

.alert-success {
    background-color: #d4edda;
    color: #155724;
}

.alert-info {
    background-color: #d1ecf1;
    color: #0c5460;
}

.alert-warning {
    background-color: #fff3cd;
    color: #856404;
}

.alert-danger {
    background-color: #f8d7da;
    color: #721c24;
}

/* ===== SUCCESS/ERROR ICONS ===== */
.success-icon {
    font-size: 4rem;
    color: #28a745;
    margin-bottom: 20px;
    text-align: center;
}

.error-icon {
    font-size: 4rem;
    color: #dc3545;
    margin-bottom: 20px;
    text-align: center;
}

/* ===== FOOTER STYLES ===== */
.auth-footer,
.reset-footer,
.login-footer {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #dee2e6;
}

.auth-footer a,
.reset-footer a,
.login-footer a {
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 600;
}

.auth-footer a:hover,
.reset-footer a:hover,
.login-footer a:hover {
    text-decoration: underline;
}

.help-text {
    color: #6c757d;
    font-size: 0.875rem;
    margin-top: 10px;
}

/* ===== SOCIAL LOGIN SECTION ===== */
.social-login {
    margin-top: 30px;
    padding-top: 30px;
    border-top: 1px solid #dee2e6;
}

.social-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.social-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #dee2e6;
}

.social-divider span {
    background: white;
    padding: 0 15px;
    color: #6c757d;
    font-size: 14px;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.social-buttons .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

/* ===== TWO-COLUMN LAYOUT ===== */
.login-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    max-width: 900px;
    width: 100%;
}

.login-left,
.login-right {
    background: white;
    border-radius: 1rem;
    padding: 40px;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
}

/* ===== SOCIAL LOGIN SECTION ===== */
.social-section {
    text-align: center;
    padding: 20px;
}

.social-title {
    font-size: 1.25rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.social-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.social-buttons .btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 20px;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .auth-card,
    .reset-card,
    .login-card {
        padding: 30px 20px;
        margin: 10px;
    }
    
    .login-split {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .login-left,
    .login-right {
        padding: 30px 20px;
    }
    
    .brand-logo {
        font-size: 2.5rem;
    }
    
    .brand-title {
        font-size: 1.25rem;
    }
}

@media (max-width: 480px) {
    .auth-container,
    .reset-container,
    .login-container {
        padding: 10px;
    }
    
    .auth-card,
    .reset-card,
    .login-card {
        padding: 20px 15px;
    }
    
    .btn {
        padding: 10px 20px;
        font-size: 14px;
    }
}

/* ===== UTILITY CLASSES ===== */
.text-center {
    text-align: center;
}

.mb-3 {
    margin-bottom: 1rem;
}

.mb-4 {
    margin-bottom: 1.5rem;
}

.mt-3 {
    margin-top: 1rem;
}

.mt-4 {
    margin-top: 1.5rem;
}

.me-2 {
    margin-right: 0.5rem;
}

.me-1 {
    margin-right: 0.25rem;
}

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

.auth-card,
.reset-card,
.login-card {
    animation: fadeIn 0.5s ease-out;
}

/* ===== FOCUS STATES ===== */
.btn:focus,
.form-control:focus,
.password-toggle:focus {
    outline: 2px solid #1e3a8a;
    outline-offset: 2px;
}

/* ===== LOADING STATES ===== */
.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

/* ===== FINANCIAL VALUE STYLES ===== */
.positive-value {
    color: #16a34a !important;
    font-weight: 600;
}

.negative-value {
    color: #dc2626 !important;
    font-weight: 600;
}

.debt-value {
    color: #dc2626 !important;
    font-weight: 600;
}

.asset-value {
    color: #16a34a !important;
    font-weight: 600;
}

/* ===== PRINT STYLES ===== */
@media print {
    body {
        background: white !important;
    }
    
    .auth-container,
    .reset-container,
    .login-container {
        min-height: auto;
        padding: 0;
    }
    
    .auth-card,
    .reset-card,
    .login-card {
        box-shadow: none;
        border: 1px solid #dee2e6;
    }
} 