/* Login Page Styles */
/* Reset and base styles */
* {
    box-sizing: border-box;
}

body.login {
    background: linear-gradient(135deg, #f0f4f8 0%, #e2e8f0 50%, #f7f7ff 100%);
    background-attachment: fixed;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

body.login .container-fluid {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 15px;
    margin: 0;
}

body.login .row {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    display: flex;
    justify-content: center;
}

.main-login {
    margin-top: 0 !important;
    width: 100% !important;
    max-width: 550px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding: 0 !important;
    position: relative;
}

.logo {
    text-align: center;
    margin-bottom: 30px;
}

.logo h2 {
    font-size: 36px;
    font-weight: 800;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 50%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
}

.logo a {
    text-decoration: none;
}

.box-login {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 40px !important;
    margin: 0 auto !important;
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.15), 0 4px 20px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(37, 99, 235, 0.1);
    width: 100% !important;
    max-width: 100% !important;
}

/* Override any conflicting styles from assets/css/styles.css */
body.login .main-login .box-login {
    margin: 0 auto !important;
    padding: 40px !important;
    width: 100% !important;
    max-width: 100% !important;
}

/* Ensure columns don't have weird widths */
body.login .col-12,
body.login .col-sm-10,
body.login .col-md-8,
body.login .col-lg-6,
body.login .col-xl-5 {
    width: 100% !important;
    max-width: 550px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

.login-tabs {
    margin-bottom: 30px;
}

.login-tabs .nav-tabs {
    border-bottom: 2px solid #e5e7eb;
    display: flex;
    justify-content: center;
}

.login-tabs .nav-tabs > li {
    flex: 1;
    text-align: center;
}

.login-tabs .nav-tabs > li > a {
    border: none;
    border-bottom: 3px solid transparent;
    color: #64748b;
    padding: 15px 20px;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.3s ease;
    border-radius: 8px 8px 0 0;
    margin: 0 5px;
}

.login-tabs .nav-tabs > li > a:hover {
    border-bottom-color: rgba(37, 99, 235, 0.3);
    background-color: rgba(37, 99, 235, 0.05);
    color: #2563eb;
}

.login-tabs .nav-tabs > li.active > a,
.login-tabs .nav-tabs > li.active > a:hover,
.login-tabs .nav-tabs > li.active > a:focus {
    border: none;
    border-bottom: 3px solid #2563eb;
    color: #2563eb;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(37, 99, 235, 0.05) 100%);
}

.user-type-icon {
    font-size: 20px;
    margin-right: 8px;
}

.tab-content {
    padding-top: 30px;
}

.form-login fieldset {
    border: none;
    padding: 0;
}

.form-login legend {
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 10px;
    background: linear-gradient(135deg, #1e40af 0%, #2563eb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.form-login p {
    color: #64748b;
    margin-bottom: 25px;
    font-size: 15px;
}

.form-group {
    margin-bottom: 25px;
}

/* Ensure form-actions div is visible */
.form-actions {
    clear: both;
    display: block !important;
    width: 100% !important;
    margin-top: 20px !important;
    margin-bottom: 15px !important;
    visibility: visible !important;
    opacity: 1 !important;
}

.input-icon {
    position: relative;
    display: block;
    width: 100%;
}

.input-icon i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #2563eb;
    font-size: 16px;
    z-index: 3;
    pointer-events: none;
}

.input-icon .form-control {
    padding-left: 45px !important;
    padding-right: 15px !important;
    height: 50px;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    font-size: 15px;
    transition: all 0.3s ease;
    background: #ffffff;
    width: 100%;
    display: block;
}

.input-icon .form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1), 0 4px 12px rgba(37, 99, 235, 0.1);
    background: #ffffff;
    transform: translateY(-2px);
    outline: none;
}

.form-actions {
    margin-top: 20px;
    margin-bottom: 15px;
}

.form-actions a {
    color: #2563eb;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.3s ease;
    display: inline-block;
    margin-top: 10px;
}

.form-actions a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.btn-primary {
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 50%, #1e40af 100%) !important;
    border: none !important;
    color: #fff !important;
    font-weight: 600;
    padding: 14px 35px;
    border-radius: 10px;
    font-size: 16px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 99, 235, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    width: 100%;
    display: block;
    cursor: pointer;
    visibility: visible !important;
    opacity: 1 !important;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 50%, #1e3a8a 100%) !important;
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(37, 99, 235, 0.5);
    color: #fff !important;
}

.btn-primary:focus {
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.3), 0 4px 15px rgba(37, 99, 235, 0.3);
    outline: none;
}

.btn-primary i {
    margin-left: 8px;
}

.new-account {
    border-top: 1px solid #e5e7eb;
    margin-top: 25px;
    padding-top: 20px;
    text-align: center;
    color: #64748b;
    font-size: 14px;
}

.new-account a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.new-account a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.error-message {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    color: #991b1b;
    padding: 15px 20px;
    margin-bottom: 25px;
    border: 2px solid #fca5a5;
    border-radius: 10px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 10px rgba(220, 38, 38, 0.1);
}

.error-message i {
    font-size: 18px;
}

.copyright {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    color: #94a3b8;
    font-size: 13px;
    font-weight: 500;
}

.copyright .back-link {
    color: #2563eb;
    text-decoration: none;
    margin-top: 10px;
    display: inline-block;
    font-weight: 500;
    transition: color 0.3s ease;
}

.copyright .back-link:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.copyright .back-link i {
    margin-right: 5px;
}

@media screen and (max-width: 768px) {
    body.login .container-fluid {
        padding: 15px;
    }
    .main-login {
        max-width: 100%;
    }
    .logo h2 {
        font-size: 28px;
    }
    .box-login {
        padding: 30px 20px !important;
        border-radius: 16px;
    }
    .form-login legend {
        font-size: 20px;
    }
    .input-icon .form-control {
        height: 48px;
        font-size: 14px;
    }
    .btn-primary {
        padding: 12px 30px;
        font-size: 14px;
        width: 100%;
    }
}

@media screen and (max-width: 576px) {
    .login-tabs .nav-tabs > li > a {
        padding: 12px 10px;
        font-size: 13px;
    }
    .user-type-icon {
        font-size: 18px;
        margin-right: 5px;
    }
}

