/* Admin Login Panel - Kilis 7 Aralık Üniversitesi */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #b02c59 0%, #8a1d42 25%, #6b1532 50%, #4a0f23 75%, #2d0915 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Animated Background Pattern */
body::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle at 25% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 25%),
    radial-gradient(circle at 75% 75%, rgba(255, 255, 255, 0.05) 0%, transparent 25%),
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    z-index: 0;
}

@keyframes float {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
}

.login-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 420px;
    padding: 20px;
}

.login-box {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow:
            0 32px 64px rgba(0, 0, 0, 0.15),
            0 16px 32px rgba(176, 44, 89, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.3);
    position: relative;
    overflow: hidden;
}

.login-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #b02c59, #d63384, #b02c59);
    background-size: 200% 100%;
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: -200% 0; }
}

.login-header {
    text-align: center;
    margin-bottom: 36px;
    position: relative;
}

.login-header::before {
    content: '🏛️';
    display: block;
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.8;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
}

.login-header h2 {
    font-size: 28px;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.login-header p {
    color: #64748b;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.5;
}

.error-message {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #dc2626, #b91c1c);
    color: white;
    padding: 16px 20px;
    border-radius: 16px;
    margin-bottom: 24px;
    font-size: 14px;
    font-weight: 500;
    box-shadow:
            0 8px 16px rgba(220, 38, 38, 0.2),
            0 4px 8px rgba(220, 38, 38, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideInDown 0.3s ease-out;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-message svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

.input-group {
    margin-bottom: 24px;
    position: relative;
}

.input-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.input-group input {
    width: 100%;
    padding: 16px 20px;
    font-size: 16px;
    color: #1f2937;
    background: #f8fafc;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    outline: none;
    font-family: inherit;
}

.input-group input::placeholder {
    color: #94a3b8;
    font-weight: 400;
}

.input-group input:focus {
    background: white;
    border-color: #b02c59;
    box-shadow:
            0 0 0 4px rgba(176, 44, 89, 0.1),
            0 4px 12px rgba(176, 44, 89, 0.05);
    transform: translateY(-1px);
}

.input-group input:focus + .input-icon {
    color: #b02c59;
    transform: translateY(-50%) scale(1.1);
}

.login-button {
    width: 100%;
    padding: 18px 32px;
    font-size: 16px;
    font-weight: 600;
    color: white;
    background: linear-gradient(135deg, #b02c59 0%, #8a1d42 100%);
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    position: relative;
    overflow: hidden;
    box-shadow:
            0 12px 24px rgba(176, 44, 89, 0.2),
            0 6px 12px rgba(176, 44, 89, 0.1);
    font-family: inherit;
}

.login-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow:
            0 16px 32px rgba(176, 44, 89, 0.25),
            0 8px 16px rgba(176, 44, 89, 0.15);
    background: linear-gradient(135deg, #a02850 0%, #7a1a3a 100%);
}

.login-button:hover::before {
    left: 100%;
}

.login-button:active {
    transform: translateY(0);
    transition-duration: 0.1s;
}

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

.login-footer {
    text-align: center;
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.login-footer p {
    color: rgba(255, 255, 255, 0.8);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
}

/* University Branding */
.university-brand {
    background: linear-gradient(135deg, #b02c59, #d63384);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    font-weight: 600;
}

/* Responsive Design */
@media (max-width: 480px) {
    .login-container {
        padding: 16px;
    }

    .login-box {
        padding: 32px 24px;
        border-radius: 20px;
    }

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

    .login-header::before {
        font-size: 40px;
    }

    .input-group input {
        padding: 14px 16px;
        font-size: 16px; /* iOS zoom fix */
    }

    .login-button {
        padding: 16px 24px;
        font-size: 15px;
    }
}

@media (max-width: 360px) {
    .login-box {
        padding: 24px 20px;
    }
}

/* Loading State */
.login-button.loading {
    pointer-events: none;
    opacity: 0.8;
}

.login-button.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s linear infinite;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}

@keyframes spin {
    to { transform: translateY(-50%) rotate(360deg); }
}

/* Form Validation States */
.input-group.error input {
    border-color: #dc2626;
    background: #fef2f2;
}

.input-group.error input:focus {
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.1);
}

.input-group.success input {
    border-color: #059669;
    background: #f0fdf4;
}

/* Language Switcher */
.language-switcher-wrapper {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 1000;
}

/* Mobile responsive for language switcher */
@media (max-width: 480px) {
    .language-switcher-wrapper {
        top: 16px;
        right: 16px;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* High Contrast Support */
@media (prefers-contrast: high) {
    .login-box {
        border: 2px solid #000;
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    }

    .input-group input {
        border-color: #000;
    }

    .login-button {
        border: 2px solid #000;
    }
}





