/* Login Page Specific Styles */
.login-page-container {
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    position: relative;
    overflow: hidden;
}

.login-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 25% 25%, rgba(255,255,255,0.1) 0%, transparent 50%),
        radial-gradient(circle at 75% 75%, rgba(255,255,255,0.1) 0%, transparent 50%);
    background-size: 400px 400px;
    animation: backgroundMove 20s linear infinite;
}

@keyframes backgroundMove {
    0% { background-position: 0% 0%; }
    100% { background-position: 100% 100%; }
}

.floating-shapes {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.shape-1 { width: 80px; height: 80px; left: 10%; top: 20%; animation-delay: 0s; }
.shape-2 { width: 120px; height: 120px; right: 10%; top: 60%; animation-delay: 1s; }
.shape-3 { width: 60px; height: 60px; left: 70%; top: 10%; animation-delay: 2s; }
.shape-4 { width: 100px; height: 100px; left: 30%; bottom: 20%; animation-delay: 3s; }
.shape-5 { width: 40px; height: 40px; right: 30%; bottom: 30%; animation-delay: 4s; }

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

/* Left Side Branding */
.login-branding-side {
    background: linear-gradient(135deg, #00A86B 0%, #008f5a 100%);
    color: white;
    align-items: center;
    justify-content: center;
    position: relative;
}

.branding-content {
    padding: 2rem;
    max-width: 500px;
    text-align: center;
}

.logo-container {
    margin-bottom: 2rem;
}

.logo-circle {
    width: 120px;
    height: 120px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: logoGlow 2s ease-in-out infinite alternate;
}

.logo-circle i {
    font-size: 3rem;
    color: #FFD700;
}

@keyframes logoGlow {
    0% { box-shadow: 0 0 20px rgba(255, 215, 0, 0.3); }
    100% { box-shadow: 0 0 40px rgba(255, 215, 0, 0.6); }
}

.branding-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.branding-subtitle {
    font-size: 1.5rem;
    font-weight: 300;
    margin-bottom: 1rem;
    color: #FFD700;
}

.branding-description {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 3rem;
}

.features-list {
    text-align: left;
    margin-bottom: 3rem;
}

.feature-item {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.feature-icon {
    width: 50px;
    height: 50px;
    background: #FFD700;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    flex-shrink: 0;
}

.feature-icon i {
    font-size: 1.5rem;
    color: #00A86B;
}

.feature-text h4 {
    font-size: 1.1rem;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.feature-text p {
    font-size: 0.9rem;
    opacity: 0.8;
    margin: 0;
}

.stats-container {
    display: flex;
    justify-content: space-around;
    margin-top: 2rem;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: #FFD700;
}

.stat-label {
    font-size: 0.8rem;
    opacity: 0.8;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Right Side Login Form */
.login-form-side {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
}

.login-form-container {
    padding: 2rem 1rem;
    width: 100%;
    max-width: 400px;
}

.login-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 2.5rem 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

.login-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.logo-circle-small {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #00A86B 0%, #008f5a 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0.5rem;
}

.logo-circle-small i {
    font-size: 1.2rem;
    color: #FFD700;
}

.logo-text {
    font-size: 1.2rem;
    font-weight: 700;
    color: #333;
}

.login-title {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 0.5rem;
}

.login-subtitle {
    color: #666;
    font-size: 1rem;
    margin-bottom: 0;
}

/* Form Styles */
.login-form .form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    font-weight: 600;
    color: #333;
    margin-bottom: 0.5rem;
    display: block;
}

.input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
    z-index: 10;
}

.form-control-modern {
    padding: 15px 15px 15px 45px;
    border: 2px solid #e3e6f0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #fff;
}

.form-control-modern:focus {
    border-color: #00A86B;
    box-shadow: 0 0 0 0.2rem rgba(0, 168, 107, 0.25);
    transform: translateY(-2px);
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    color: #666;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #00A86B;
}

.form-check-modern {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.form-check-modern .form-check-input {
    margin-right: 0.75rem;
    width: 18px;
    height: 18px;
    border: 2px solid #e3e6f0;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    position: relative;
}

.form-check-modern .form-check-input:checked {
    background-color: #00A86B;
    border-color: #00A86B;
}

.form-check-modern .form-check-input:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.form-check-modern .form-check-input:focus {
    border-color: #00A86B;
    box-shadow: 0 0 0 0.2rem rgba(0, 168, 107, 0.25);
    outline: none;
}

.form-check-modern .form-check-label {
    color: #333;
    font-weight: 500;
    cursor: pointer;
    user-select: none;
    margin-bottom: 0;
}

.btn-login {
    width: 100% !important;
    padding: 15px !important;
    background: linear-gradient(135deg, #00A86B 0%, #008f5a 100%) !important;
    border: none !important;
    border-radius: 10px !important;
    color: white !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    transition: all 0.3s ease !important;
    cursor: pointer !important;
    text-decoration: none !important;
    display: block !important;
    text-align: center !important;
    line-height: normal !important;
}

.btn-login:hover {
    background: linear-gradient(135deg, #008f5a 0%, #00A86B 100%) !important;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 168, 107, 0.4);
    color: white !important;
}

.btn-login:focus {
    background: linear-gradient(135deg, #00A86B 0%, #008f5a 100%) !important;
    box-shadow: 0 0 0 0.2rem rgba(0, 168, 107, 0.5);
    color: white !important;
    outline: none;
}

.btn-login:active {
    background: linear-gradient(135deg, #00A86B 0%, #008f5a 100%) !important;
    transform: translateY(0);
    color: white !important;
}

.btn-login:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

/* Override any Bootstrap button styles */
button.btn-login,
.btn.btn-login {
    background: linear-gradient(135deg, #00A86B 0%, #008f5a 100%) !important;
    border: none !important;
    color: white !important;
}

.btn-login.loading .btn-text {
    opacity: 0;
}

.btn-login.loading .btn-loader {
    display: block !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.field-validation-error {
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
    display: block;
}

.alert-modern {
    border-radius: 10px;
    border: none;
    box-shadow: 0 4px 15px rgba(220, 53, 69, 0.2);
}

.login-footer {
    text-align: center;
    margin-top: 2rem;
}

/* Demo Accounts */
.demo-accounts {
    margin-top: 2rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 1.5rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.demo-header {
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    margin-bottom: 1rem;
}

.demo-header i {
    margin-right: 0.5rem;
    color: #FFD700;
}

.demo-list {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.demo-account {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    padding: 0.75rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.demo-account:hover {
    background: white;
    border-color: #00A86B;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.demo-role {
    font-weight: 600;
    color: #333;
    font-size: 0.9rem;
}

.demo-creds {
    color: #666;
    font-size: 0.8rem;
}

.demo-note {
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    font-size: 0.75rem;
    display: block;
}

/* Animations */
.slide-in-left {
    animation: slideInLeft 0.8s ease-out;
}

.slide-in-right {
    animation: slideInRight 0.8s ease-out;
}

.slide-in-up {
    animation: slideInUp 0.8s ease-out 0.5s both;
}

@keyframes slideInLeft {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes slideInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes particleFloat {
    0% {
        opacity: 1;
        transform: translateY(0px) scale(1);
    }
    100% {
        opacity: 0;
        transform: translateY(-50px) scale(0);
    }
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .login-form-container {
        padding: 1rem;
    }
    
    .login-card {
        padding: 2rem 1.5rem;
    }
    
    .branding-title {
        font-size: 2rem;
    }
    
    .stats-container {
        flex-wrap: wrap;
        gap: 1rem;
    }
}

@media (max-width: 767.98px) {
    .login-card {
        padding: 1.5rem 1rem;
        margin: 1rem 0;
    }
    
    .login-title {
        font-size: 1.5rem;
    }
    
    .demo-list {
        grid-template-columns: 1fr;
    }
}