/* Login Page Styles - Professional & Beautiful */

:root {
    --primary-color: #4f46e5;
    --primary-hover: #4338ca;
    --secondary-color: #64748b;
    --success-color: #10b981;
    --danger-color: #ef4444;
    --light-bg: #f8fafc;
    --dark-text: #1e293b;
    --muted-text: #64748b;
    --border-color: #e2e8f0;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background-color: var(--light-bg);
    min-height: 100vh;
}

/* Login Wrapper */
.login-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
}

.login-container {
    width: 100%;
    max-width: 1000px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

/* Brand Section - Left Side */
.login-brand-section {
    background: linear-gradient(135deg, var(--primary-color) 0%, #7c3aed 100%);
    padding: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.login-brand-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.login-brand-section::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -30%;
    width: 80%;
    height: 80%;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 50%;
}

.brand-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #ffffff;
}

.brand-logo {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    font-size: 2.5rem;
    backdrop-filter: blur(10px);
}

.brand-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.brand-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.brand-features {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.95rem;
    opacity: 0.95;
}

.feature-item i {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    font-size: 0.85rem;
}

/* Form Section - Right Side */
.login-form-section {
    padding: 3rem;
    display: flex;
    align-items: center;
}

.login-form-wrapper {
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

/* Mobile Header */
.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.brand-logo-small {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #7c3aed 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    color: #ffffff;
    font-size: 1.5rem;
}

.login-header h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--dark-text);
}

/* Form Styles */
.form-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
}

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

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

.form-label {
    font-weight: 500;
    color: var(--dark-text);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.input-group {
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid var(--border-color);
    transition: var(--transition);
}

.input-group:focus-within {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.input-group-text {
    background: var(--light-bg);
    border: none;
    color: var(--muted-text);
    font-size: 1rem;
    padding: 0.75rem 1rem;
}

.form-control {
    border: none;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: var(--transition);
}

.form-control:focus {
    box-shadow: none;
    outline: none;
}

.form-control::placeholder {
    color: #94a3b8;
}

/* Toggle Password Button */
.toggle-password {
    border: none;
    background: var(--light-bg);
    color: var(--muted-text);
    cursor: pointer;
    transition: var(--transition);
}

.toggle-password:hover {
    background: #e2e8f0;
    color: var(--dark-text);
}

/* Validation Styles */
.is-invalid {
    border-color: var(--danger-color) !important;
}

.invalid-feedback {
    font-size: 0.85rem;
}

/* Form Check */
.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}

.forgot-password-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: var(--transition);
}

.forgot-password-link:hover {
    color: var(--primary-hover);
}

/* Login Button */
.btn-login {
    background: linear-gradient(135deg, var(--primary-color) 0%, #7c3aed 100%);
    border: none;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-login:hover {
    background: linear-gradient(135deg, var(--primary-hover) 0%, #6d28d9 100%);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

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

.btn-icon {
    transition: var(--transition);
}

.btn-login:hover .btn-icon {
    transform: translateX(4px);
}

/* Divider */
.login-divider {
    display: flex;
    align-items: center;
    margin: 2rem 0;
}

.login-divider::before,
.login-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border-color);
}

.login-divider span {
    padding: 0 1rem;
    color: var(--muted-text);
    font-size: 0.85rem;
}

/* Social Login */
.social-login {
    display: flex;
    gap: 1rem;
}

.social-btn {
    flex: 1;
    padding: 0.75rem;
    border-radius: 12px;
    font-weight: 500;
    border: 2px solid var(--border-color);
    color: var(--dark-text);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.social-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: rgba(79, 70, 229, 0.05);
}

.social-btn i {
    font-size: 1.1rem;
}

/* Footer */
.login-footer {
    text-align: center;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
}

.login-footer p {
    color: var(--muted-text);
    font-size: 0.9rem;
}

.register-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.register-link:hover {
    color: var(--primary-hover);
}

/* Mobile Responsive */
@media (max-width: 991.98px) {
    .login-container {
        max-width: 500px;
    }

    .login-brand-section {
        padding: 2rem;
    }

    .brand-logo {
        width: 60px;
        height: 60px;
        font-size: 2rem;
    }

    .brand-title {
        font-size: 1.5rem;
    }

    .brand-subtitle {
        font-size: 0.9rem;
    }

    .brand-features {
        display: none;
    }

    .login-form-section {
        padding: 2rem;
    }

    .form-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 575.98px) {
    .login-wrapper {
        padding: 1rem;
    }

    .login-container {
        border-radius: 16px;
    }

    .login-form-section {
        padding: 1.5rem;
    }

    .brand-logo-small {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }

    .social-login {
        flex-direction: column;
    }

    .social-btn {
        width: 100%;
    }

    .login-divider {
        margin: 1.5rem 0;
    }
}

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

.login-form-wrapper {
    animation: fadeIn 0.5s ease-out;
}

/* Focus States for Accessibility */
.btn:focus,
.form-control:focus,
.form-check-input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

/* Loading State */
.btn-login.loading {
    pointer-events: none;
    opacity: 0.8;
}

.btn-login.loading .btn-text::after {
    content: '';
    width: 16px;
    height: 16px;
    border: 2px solid transparent;
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 0.5rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
