/* Login Page Styles */

:root {
    --primary-color: #0d6efd;
    --primary-dark: #0b5ed7;
    --secondary-color: #6c757d;
    --success-color: #198754;
    --danger-color: #dc3545;
    --light-bg: #f8f9fa;
}

* {
    font-family: 'Poppins', sans-serif;
}

body {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

.login-page {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.login-container {
    min-height: 100vh;
    width: 100%;
}

/* Left Side - Branding */
.login-left {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

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

.login-left::after {
    content: '';
    position: absolute;
    width: 150px;
    height: 150px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    bottom: -30px;
    left: -30px;
}

.brand-content {
    position: relative;
    z-index: 2;
}

.brand-icon {
    font-size: 80px;
    color: white;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    animation: float 3s ease-in-out infinite;
}

.brand-icon-mobile {
    font-size: 60px;
    color: var(--primary-color);
}

.login-left h1 {
    color: white;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.login-left h2 {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

.login-left .lead {
    color: rgba(255, 255, 255, 0.85);
    font-weight: 300;
    line-height: 1.8;
}

.features {
    margin-top: 50px;
}

.feature-item {
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-left: 3px solid rgba(255, 255, 255, 0.3);
    padding-left: 20px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    border-left-color: white;
    color: white;
    transform: translateX(10px);
}

.feature-item i {
    font-size: 24px;
}

/* Right Side - Form */
.login-form-container {
    background: white;
    border-radius: 20px;
    padding: 50px 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    animation: slideUp 0.5s ease;
}

.login-form-container h2 {
    color: #333;
    margin-bottom: 30px;
}

/* Form Elements */
.form-label {
    color: #333;
    font-weight: 500;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.form-control,
.form-control:focus {
    border: 2px solid #e9ecef;
    border-radius: 10px;
    padding: 12px 15px;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.input-group-text {
    border: 2px solid #e9ecef;
    border-right: none;
    border-radius: 10px 0 0 10px;
    color: var(--primary-color);
    cursor: default;
}

.input-group .form-control {
    border-left: none;
}

.input-group-text:not(:first-child) {
    border-radius: 0 10px 10px 0;
    border-right: 2px solid #e9ecef;
    border-left: none;
    cursor: pointer;
}

.cursor-pointer {
    cursor: pointer;
}

/* Checkbox */
.form-check-input {
    width: 1.25em;
    height: 1.25em;
    margin-top: 0.2em;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

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

.form-check-input:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(13, 110, 253, 0.15);
}

.form-check-label {
    color: #666;
    cursor: pointer;
    font-weight: 500;
    margin-left: 5px;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    font-weight: 600;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn-primary:hover,
.btn-primary:focus {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    box-shadow: 0 15px 40px rgba(102, 126, 234, 0.6);
    transform: translateY(-2px);
}

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

.btn-outline-secondary {
    border: 2px solid #e9ecef;
    color: #666;
    font-weight: 500;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.btn-outline-secondary:hover {
    background-color: var(--light-bg);
    border-color: #ddd;
    color: #333;
}

/* Links */
a {
    color: var(--primary-color);
    transition: all 0.2s ease;
}

a:hover {
    color: var(--primary-dark);
}

/* Alert */
.alert {
    border: none;
    border-radius: 10px;
    border-left: 4px solid;
}

.alert-danger {
    background-color: #f8d7da;
    border-left-color: var(--danger-color);
}

.alert-success {
    background-color: #d4edda;
    border-left-color: var(--success-color);
}

/* Animations */
@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

/* Responsive */
@media (max-width: 992px) {
    .login-form-container {
        padding: 40px 30px;
    }

    .login-left {
        padding: 50px 20px;
    }
}

@media (max-width: 576px) {
    .login-form-container {
        padding: 30px 20px;
        border-radius: 15px;
    }

    .login-left h1 {
        font-size: 2rem;
    }

    .login-left h2 {
        font-size: 1rem;
    }

    .features {
        display: none;
    }

    .form-label {
        font-size: 0.9rem;
    }

    .form-control {
        font-size: 0.9rem;
        padding: 10px 12px;
    }

    .btn {
        padding: 0.6rem 1rem;
    }
}

/* Validation Styles */
.was-validated .form-control:invalid {
    border-color: var(--danger-color);
}

.was-validated .form-control:valid {
    border-color: var(--success-color);
}

.invalid-feedback {
    display: block;
    font-size: 0.85rem;
    margin-top: 5px;
    color: var(--danger-color);
}
