/* Login Page Styling - Professional & Clean */

:root {
    --primary-color: #17A2B8;
    --primary-dark: #138496;
    --text-dark: #1e293b;
    --text-muted: #64748b;
    --border-color: #e2e8f0;
    --bg-light: #f8fafc;
}

/* Hide navigation for login page */
.navbar, .footer {
    display: none !important;
}

main {
    padding: 0 !important;
}

/* Clean, professional background */
body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: #f8fafc;
    position: relative;
    overflow-x: hidden;
}

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

.login-card-container {
    max-width: 1000px;
    width: 100%;
    position: relative;
}

/* Clean, professional login card */
.login-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 8px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
}

.card-body {
    padding: 0 !important;
    position: relative;
}

/* Form section styling */
.login-form-col {
    background: #ffffff;
    padding: 3rem !important;
    position: relative;
    border-radius: 8px 0 0 8px;
}

/* Clean typography */
.login-title {
    font-size: 2rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    text-align: center;
}

.login-subtitle {
    color: var(--text-muted);
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 2rem;
    font-weight: 400;
}

.login-subtitle a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
}

.login-subtitle a:hover {
    color: var(--primary-dark);
    text-decoration: underline;
}

/* Professional form styling */
.form-group {
    margin-bottom: 1.25rem;
    position: relative;
}

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

.form-label i {
    margin-right: 0.5rem;
    color: var(--text-muted);
    font-size: 0.85rem;
}

.form-control {
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 0.625rem 0.875rem;
    font-size: 0.95rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    background: #ffffff;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(23, 162, 184, 0.1);
    outline: none;
}

/* Professional login button */
.btn-login {
    background: var(--primary-color);
    border: none;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 4px;
    font-weight: 500;
    font-size: 1rem;
    width: 100%;
    margin-top: 1rem;
    transition: background-color 0.2s ease;
}

.btn-login:hover {
    background: var(--primary-dark);
    color: white;
}

.btn-login:active {
    background: #117a8b;
}

/* Alert styling */
.alert {
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
}

.alert-danger {
    background: #fef2f2;
    border-color: #fecaca;
    color: #dc2626;
}

.alert-success {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #059669;
}

/* Divider styling */
hr {
    border: none;
    height: 1px;
    background: var(--border-color);
    margin: 1.5rem 0;
}

/* Forgot password link */
.forgot-password {
    text-align: center;
    margin-top: 1rem;
}

.forgot-password a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.2s ease;
}

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

/* Professional banner section */
.login-banner-col {
    background: linear-gradient(135deg, #17A2B8 0%, #138496 100%);
    padding: 3rem !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    border-radius: 0 8px 8px 0;
    position: relative;
}

.banner-logo {
    max-width: 280px;
    height: auto;
    margin-bottom: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.banner-text {
    font-size: 1.25rem;
    font-weight: 500;
    opacity: 0.95;
    line-height: 1.5;
}

.banner-subtitle {
    font-size: 0.95rem;
    opacity: 0.85;
    margin-top: 0.75rem;
    line-height: 1.5;
}

/* Feature highlights */
.feature-highlights {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-top: 2rem;
    flex-wrap: wrap;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem;
}

.feature-item i {
    font-size: 1.75rem;
    margin-bottom: 0.5rem;
    opacity: 0.9;
}

.feature-item span {
    font-size: 0.875rem;
    font-weight: 400;
    text-align: center;
    opacity: 0.9;
}

/* Responsive design */
@media (max-width: 991.98px) {
    .login-form-col {
        border-radius: 8px;
        margin-bottom: 1rem;
    }

    .login-banner-col {
        border-radius: 8px;
        padding: 2rem !important;
    }

    .login-title {
        font-size: 1.75rem;
    }

    .banner-logo {
        max-width: 220px;
    }
}

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

    .login-form-col {
        padding: 2rem !important;
    }

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

    .form-control {
        padding: 0.625rem 0.875rem;
    }

    .btn-login {
        padding: 0.625rem 1.25rem;
        font-size: 0.95rem;
    }
}

/* Password toggle button */
.password-toggle-btn {
    z-index: 10;
    border: none;
    background: none;
    padding: 0.25rem 0.5rem;
}

.password-toggle-btn:hover {
    background: none;
}

.form-check-input {
    border-radius: 3px;
    border: 1px solid var(--border-color);
}

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

.form-check-label {
    color: var(--text-dark);
    font-size: 0.9rem;
}

/* Loading state for form submission */
.btn-login.loading {
    pointer-events: none;
    opacity: 0.7;
}
