/* ========================================
   Modern Login Page Styles
   ======================================== */

/* Reset and Base Styles */
body, html {
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Login Container */
.login-container {
    min-height: calc(100vh - 56px);
    background: linear-gradient(135deg, #11733a 0%, #f17b20 100%);
    position: relative;
    padding-top: 56px;
}

.login-wrapper {
    min-height: calc(100vh - 56px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Login Card */
.login-card {
    background: #fff;
    border-radius: 15px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    max-width: 900px;
    width: 100%;
}

/* Logo Section */
.logo-section {
    background: linear-gradient(135deg, #f6e0c7 0%, #fef5ec 100%);
    padding: 40px 20px;
    min-height: 450px;
    position: relative;
}

.logo-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23f17b20' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.3;
}

.login-logo {
    max-width: 150px;
    width: 100%;
    height: auto;
    position: relative;
    z-index: 1;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Form Section */
.form-section {
    padding: 50px 40px;
}

.login-form-wrapper {
    max-width: 380px;
    margin: 0 auto;
}

.login-title {
    color: #333;
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 10px;
    text-align: center;
}

.login-subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 30px;
    text-align: center;
}

/* Form Styles */
.login-form .form-group {
    margin-bottom: 20px;
}

.login-form .input-group {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.login-form .input-group-prepend .input-group-text {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-right: none;
    color: #f17b20;
    padding: 12px 15px;
}

.login-form .form-control {
    border: 1px solid #dee2e6;
    border-left: none;
    padding: 12px 15px;
    font-size: 14px;
    height: auto;
    transition: all 0.3s ease;
}

.login-form .form-control:focus {
    box-shadow: none;
    border-color: #f17b20;
    background-color: #fff;
}

.login-form .input-group:focus-within {
    box-shadow: 0 4px 20px rgba(241, 123, 32, 0.15);
}

.login-form .input-group:focus-within .input-group-text {
    border-color: #f17b20;
    background: #fff;
}

/* Buttons */
.login-btn {
    background: linear-gradient(135deg, #11733a 0%, #57b846 100%);
    border: none;
    padding: 12px 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 7px 20px rgba(87, 184, 70, 0.3);
}

.btn-outline-secondary {
    border-color: #dee2e6;
    color: #666;
    padding: 10px 30px;
    font-size: 14px;
    font-weight: 500;
    border-radius: 8px;
}

.btn-outline-secondary:hover {
    background-color: #f8f9fa;
    border-color: #dee2e6;
    color: #333;
}

/* Divider */
.divider-text {
    position: relative;
    text-align: center;
    margin: 25px 0;
}

.divider-text span {
    background: #fff;
    padding: 0 15px;
    color: #999;
    font-size: 13px;
    position: relative;
}

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

/* Links */
.create-account-link {
    color: #f17b20;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    font-size: 15px;
}

.create-account-link:hover {
    color: #d66919;
    text-decoration: none;
}

.create-account-link i {
    transition: transform 0.3s ease;
}

.create-account-link:hover i {
    transform: translateX(3px);
}

/* Help Text */
.login-help-text {
    padding: 20px;
    background: #f8f9fa;
    border-top: 1px solid #dee2e6;
    font-size: 13px;
    color: #666;
}

.help-link {
    color: #f17b20;
    font-weight: 500;
    text-decoration: none;
}

.help-link:hover {
    color: #d66919;
    text-decoration: underline;
}

/* Error Message */
#error:not(:empty) {
    display: block !important;
    font-size: 13px;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 15px;
}

/* jQuery Validation Error Messages */
.login-form .input-group {
    flex-wrap: wrap;
}

.login-form label.error {
    flex-basis: 100%;
    width: 100%;
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    padding-left: 5px;
}

.no-gutters > [class*=col-] {
    padding-right: 15px;
     padding-left: 15px;
}

/* Responsive Design - Single Breakpoint at col-md (991px) */
@media (max-width: 991px) {
    /* Reduce card padding and spacing */
    .login-wrapper {
        padding: 10px;
        min-height: calc(100vh - 56px);
    }

    .login-card {
        margin: 10px 0;
        max-width: 600px; /* Smaller card on mobile */
    }

    /* Significantly reduce logo section height and padding */
    .logo-section {
        min-height: 120px; /* Reduced from 180px */
        padding: 20px 10px; /* Reduced from 40px 20px */
        display: flex !important;
        align-items: center;
        justify-content: center;
    }

    .login-logo {
        max-width: 80px; /* Reduced from 100px */
    }

    /* Reduce form section padding */
    .form-section {
        padding: 20px 15px; /* Reduced horizontal padding */
    }

    /* Reduce title and subtitle spacing */
    .login-title {
        font-size: 22px; /* Slightly smaller */
        margin-bottom: 5px; /* Reduced spacing */
    }

    .login-subtitle {
        margin-bottom: 20px; /* Reduced from 30px */
        font-size: 13px;
    }

    /* Reduce form field spacing */
    .login-form .form-group {
        margin-bottom: 15px; /* Reduced from 20px */
    }

    /* Smaller input fields */
    .login-form .input-group-prepend .input-group-text,
    .login-form .form-control {
        padding: 10px 12px; /* Reduced from 12px 15px */
        font-size: 13px;
    }

    /* Smaller buttons */
    .login-btn {
        padding: 10px 20px; /* Reduced from 12px 30px */
        font-size: 14px;
        margin-top: 5px;
    }

    .btn-outline-secondary {
        padding: 8px 20px; /* Reduced from 10px 30px */
        font-size: 13px;
    }

    /* Reduce divider spacing */
    .divider-text {
        margin: 15px 0; /* Reduced from 25px */
    }

    /* Reduce help text padding */
    .login-help-text {
        padding: 15px; /* Reduced from 20px */
        font-size: 12px;
    }

    .login-form-wrapper {
        max-width: 100%;
    }

    /* Reduce overall vertical spacing */
    .min-vh-100 {
        min-height: auto !important;
    }
}

/* Loading State */
.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.login-btn.loading::after {
    content: '';
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-left: 8px;
    border: 2px solid #fff;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 0.8s linear infinite;
}

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

/* Remove unnecessary spacing */
.generalBodyDiv {
    margin: 0 !important;
    padding: 0 !important;
    height: 0 !important;
    min-height: 0 !important;
}

/* Smooth transitions */
* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

button, input, .form-control {
    transition: all 0.3s ease;
}