/* Admin Login Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --danger-color: #dc2626;
    --success-color: #16a34a;
    --warning-color: #ea580c;
    --dark-bg: #0f172a;
    --darker-bg: #020617;
    --card-bg: #1e293b;
    --border-color: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --text-tertiary: #94a3b8;
}

.admin-login-body {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    background: linear-gradient(135deg, var(--dark-bg) 0%, var(--darker-bg) 100%);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.admin-login-body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(37, 99, 235, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(37, 99, 235, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

.admin-login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.admin-login-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    max-width: 1200px;
    height: auto;
    max-height: 600px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
}

/* Left Side - Branding */
.admin-login-brand {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 60px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

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

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

.brand-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}

.brand-icon {
    font-size: 80px;
    margin-bottom: 20px;
    animation: float 3s ease-in-out infinite;
}

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

.brand-content h1 {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.brand-content p {
    font-size: 16px;
    opacity: 0.9;
    font-weight: 300;
}

/* Right Side - Login Form */
.admin-login-form-wrapper {
    background: var(--card-bg);
    padding: 60px 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.admin-login-form {
    width: 100%;
    animation: slideUp 0.6s ease-out;
}

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

.form-header {
    margin-bottom: 40px;
    text-align: center;
}

.form-header h2 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.form-header p {
    font-size: 14px;
    color: var(--text-tertiary);
    margin: 0;
}

/* Form Controls */
.form-group {
    position: relative;
}

.form-label {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
    display: block;
}

.form-label i {
    margin-right: 8px;
    color: var(--primary-light);
}

.form-control {
    background: rgba(15, 23, 42, 0.5);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    border-radius: 10px;
    padding: 12px 16px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-control:focus {
    background: rgba(15, 23, 42, 0.7);
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
    color: var(--text-primary);
}

.form-control::placeholder {
    color: var(--text-tertiary);
}

.form-control.is-invalid {
    border-color: var(--danger-color);
    background: rgba(220, 38, 38, 0.05);
}

.form-control.is-invalid:focus {
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.invalid-feedback {
    font-size: 13px;
    color: var(--danger-color);
    margin-top: 6px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.form-check {
    display: flex;
    align-items: center;
}

.form-check-input {
    width: 18px;
    height: 18px;
    border: 1px solid var(--border-color);
    background: transparent;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s ease;
    margin-right: 8px;
}

.form-check-input:checked {
    background: var(--primary-light);
    border-color: var(--primary-light);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-check-input:focus {
    outline: none;
    border-color: var(--primary-light);
}

.form-check-label {
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    margin: 0;
    font-weight: 500;
}

/* Login Button */
.btn-login {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    border: none;
    color: white;
    font-weight: 600;
    font-size: 16px;
    padding: 12px 24px;
    border-radius: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
    cursor: pointer;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(37, 99, 235, 0.4);
    color: white;
}

.btn-login:active {
    transform: translateY(0);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.btn-login i {
    margin-right: 8px;
}

/* Form Footer */
.form-footer {
    margin-top: 30px;
    text-align: center;
}

.footer-links {
    margin-bottom: 15px;
}

.footer-links a {
    font-size: 13px;
    color: var(--primary-light);
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.footer-links a:hover {
    color: var(--text-primary);
}

.separator {
    margin: 0 12px;
    color: var(--border-color);
}

.back-home {
    color: var(--text-secondary) !important;
}

.back-home:hover {
    color: var(--primary-light) !important;
}

.security-note {
    font-size: 12px;
    color: var(--text-tertiary);
    margin: 0;
    padding-top: 15px;
    border-top: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.security-note i {
    color: var(--success-color);
}

/* Responsive Design */
@media (max-width: 768px) {
    .admin-login-wrapper {
        grid-template-columns: 1fr;
        max-height: none;
        min-height: 100vh;
    }

    .admin-login-brand {
        padding: 40px 30px;
        min-height: 250px;
    }

    .brand-icon {
        font-size: 60px;
        margin-bottom: 15px;
    }

    .brand-content h1 {
        font-size: 28px;
        margin-bottom: 8px;
    }

    .brand-content p {
        font-size: 14px;
    }

    .admin-login-form-wrapper {
        padding: 40px 30px;
    }

    .form-header h2 {
        font-size: 24px;
    }

    .form-control {
        font-size: 16px; /* Prevents zoom on iOS */
    }
}

@media (max-width: 480px) {
    .admin-login-container {
        padding: 10px;
    }

    .admin-login-brand {
        padding: 30px 20px;
        min-height: 200px;
    }

    .brand-icon {
        font-size: 50px;
    }

    .brand-content h1 {
        font-size: 24px;
    }

    .admin-login-form-wrapper {
        padding: 30px 20px;
    }

    .form-header h2 {
        font-size: 20px;
    }

    .form-group {
        margin-bottom: 1rem !important;
    }

    .d-grid {
        gap: 1rem !important;
    }
}

/* Animations */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.admin-login-brand {
    animation: slideInLeft 0.6s ease-out;
}

.admin-login-form-wrapper {
    animation: slideInRight 0.6s ease-out;
}

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

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}
