:root {
    --primary-blue: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #3b82f6;
    --accent-gold: #d4af37;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --text-dark: #1f2937;
    --text-light: #6b7280;
    --text-white: #ffffff;
    --bg-light: #f8fafc;
    --bg-dark: #0f172a;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-blue: linear-gradient(135deg, #3b82f6, #1e40af);
    --gradient-green: linear-gradient(135deg, #10b981, #059669);
    --gradient-gold: linear-gradient(135deg, #d4af37, #f59e0b);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
}

.admin-body {
    background: var(--gradient-primary);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    overflow: visible;
}

.admin-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.admin-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: glowFloat 15s ease-in-out infinite;
}

.glow-1 {
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, var(--primary-blue) 0%, transparent 70%);
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.glow-2 {
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--accent-gold) 0%, transparent 70%);
    bottom: 10%;
    right: 10%;
    animation-delay: 5s;
}

.glow-3 {
    width: 350px;
    height: 350px;
    background: radial-gradient(circle, var(--primary-dark) 0%, transparent 70%);
    top: 50%;
    left: 80%;
    animation-delay: 10s;
}

.admin-particles {
    position: absolute;
    width: 100%;
    height: 100%;
}

.admin-container {
    max-width: 1200px;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 4rem;
    position: relative;
    z-index: 2;
}

.admin-card {
    flex: 1;
    max-width: 480px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: hidden;
    position: relative;
}

.admin-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-blue);
}

.admin-card-header {
    padding: 2rem 2rem 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}

.admin-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--primary-dark);
}

.admin-logo i {
    font-size: 1.5rem;
    color: var(--primary-blue);
}

.admin-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(37, 99, 235, 0.1);
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-blue);
    border: 1px solid rgba(37, 99, 235, 0.2);
}

.admin-card-body {
    padding: 2rem;
}

.admin-alert {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    animation: slideIn 0.3s ease-out;
}

.admin-alert.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.admin-alert.success {
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    background: var(--accent-red);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.admin-alert.success .alert-icon {
    background: var(--accent-green);
}

.alert-content h4 {
    font-weight: 600;
    margin-bottom: 0.25rem;
    color: var(--text-dark);
}

.alert-content ul {
    list-style: none;
    font-size: 0.875rem;
    color: var(--text-light);
}

.admin-alert.error .alert-content ul li {
    color: var(--accent-red);
}

.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.form-header h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.form-header p {
    color: var(--text-light);
    font-size: 0.95rem;
}

.admin-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.form-group {
    position: relative;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-label i {
    color: var(--primary-blue);
    width: 16px;
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    transition: var(--transition);
    background: var(--bg-light);
    position: relative;
    z-index: 2;
}

.form-input:focus {
    outline: none;
    border-color: var(--primary-blue);
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-blue);
    border-radius: 12px;
    opacity: 0;
    transition: var(--transition);
    z-index: 1;
}

.form-input:focus ~ .input-glow {
    opacity: 0.1;
}

.password-strength {
    margin-top: 0.5rem;
}

.strength-bar {
    height: 4px;
    background: #e5e7eb;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.25rem;
    position: relative;
}

.strength-bar::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0;
    background: var(--accent-green);
    transition: var(--transition);
}

.form-input:focus ~ .password-strength .strength-bar::after {
    width: 100%;
}

.strength-text {
    font-size: 0.75rem;
    color: var(--text-light);
}

.admin-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.admin-btn.primary {
    background: var(--gradient-blue);
    color: white;
}

.admin-btn.success {
    background: var(--gradient-green);
    color: white;
}

.admin-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-gold);
    opacity: 0;
    transition: var(--transition);
}

.admin-btn:hover .btn-glow {
    opacity: 0.2;
}

.form-footer {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.security-features {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.security-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.security-item i {
    color: var(--accent-green);
    width: 16px;
}

.setup-info {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 1rem;
    background: rgba(59, 130, 246, 0.05);
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--text-light);
}

.setup-info i {
    color: var(--primary-blue);
    margin-top: 0.125rem;
}

.admin-card-footer {
    padding: 1.5rem 2rem;
    background: rgba(0, 0, 0, 0.02);
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.system-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--text-light);
}

.info-item i {
    color: var(--primary-blue);
}

.admin-visual {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.visual-container {
    position: relative;
    max-width: 400px;
    width: 100%;
}

.security-shield {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: floatShield 6s ease-in-out infinite;
}

.security-shield i {
    font-size: 5rem;
    color: var(--primary-blue);
    position: relative;
    z-index: 3;
}

.shield-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: var(--gradient-blue);
    border-radius: 50%;
    opacity: 0.2;
    filter: blur(20px);
    animation: pulseGlow 4s ease-in-out infinite;
}

.shield-ring {
    position: absolute;
    border: 2px solid var(--primary-blue);
    border-radius: 50%;
    opacity: 0.3;
    animation: rotateRing 8s linear infinite;
}

.ring-1 {
    width: 100%;
    height: 100%;
    animation-delay: 0s;
}

.ring-2 {
    width: 130%;
    height: 130%;
    top: -15%;
    left: -15%;
    animation-delay: -2s;
    animation-duration: 12s;
}

.ring-3 {
    width: 160%;
    height: 160%;
    top: -30%;
    left: -30%;
    animation-delay: -4s;
    animation-duration: 16s;
}

.floating-element {
    position: absolute;
    width: 50px;
    height: 50px;
    background: white;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-md);
    animation: floatElement 8s ease-in-out infinite;
    border: 1px solid rgba(59, 130, 246, 0.1);
}

.floating-element i {
    color: var(--primary-blue);
    font-size: 1.25rem;
}

.el-1 {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.el-2 {
    top: 20%;
    right: 10%;
    animation-delay: 2s;
}

.el-3 {
    bottom: 30%;
    left: 5%;
    animation-delay: 4s;
}

.el-4 {
    bottom: 10%;
    right: 15%;
    animation-delay: 6s;
}

/* Animations */
@keyframes glowFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes floatShield {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(5deg);
    }
}

@keyframes pulseGlow {
    0%, 100% {
        opacity: 0.2;
        transform: translate(-50%, -50%) scale(1);
    }
    50% {
        opacity: 0.3;
        transform: translate(-50%, -50%) scale(1.1);
    }
}

@keyframes rotateRing {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes floatElement {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(10deg);
    }
}

/* Responsive Design */
@media (max-width: 968px) {
    .admin-container {
        flex-direction: column;
        gap: 2rem;
    }

    .admin-card {
        max-width: 100%;
    }

    .admin-visual {
        order: -1;
    }

    .security-shield {
        width: 150px;
        height: 150px;
    }

    .security-shield i {
        font-size: 4rem;
    }

    .floating-element {
        width: 40px;
        height: 40px;
    }

    .floating-element i {
        font-size: 1rem;
    }
}

@media (max-width: 640px) {
    .admin-body {
        padding: 1rem;
    }

    .admin-card-header {
        padding: 1.5rem 1.5rem 1rem;
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .admin-card-body {
        padding: 1.5rem;
    }

    .system-info {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }

    .form-header h2 {
        font-size: 1.5rem;
    }

    .security-shield {
        width: 120px;
        height: 120px;
    }

    .security-shield i {
        font-size: 3rem;
    }
}