/**
 * İkramedya Web Tasarım Hizmetleri
 * Admin Login Premium Ultra Tasarım
 */

:root {
    --primary-blue: #0f52f0;
    --primary-dark: #0a3bb8;
    --gradient-start: #0f2eaa;
    --gradient-end: #1e5fff;
    --neon-blue: #3b82f6;
    --neon-cyan: #06b6d4;
    --success: #10b981;
    --error: #ef4444;
    --text-dark: #0f172a;
    --text-medium: #475569;
    --text-light: #94a3b8;
    --white: #ffffff;
    --bg-gray: #f8fafc;
    --border-color: #e2e8f0;
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.login-body,
.ui-login-body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--bg-gray);
    color: var(--text-dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.login-wrapper,
.ui-login {
    display: flex;
    min-height: 100vh;
    width: 100%;
}

/* ============================================
   Sol Panel - Premium Marka Ekranı
   ============================================ */
.login-left-panel,
.ui-login__brand {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    overflow: hidden;
    padding: 60px 50px;
}

/* Animasyonlu Arka Plan */
.animated-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

/* Büyük Blur Planet (sol üst) */
.blur-planet {
    position: absolute;
    width: 700px;
    height: 700px;
    top: -200px;
    left: -200px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(96, 165, 250, 0.6) 0%, rgba(59, 130, 246, 0.3) 50%, transparent 70%);
    filter: blur(80px);
    animation: planetRotate 30s linear infinite;
}

@keyframes planetRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Particle Sistemi */
.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.8);
}

.particle-1 {
    top: 20%;
    left: 15%;
    animation: particleFloat 8s ease-in-out infinite;
}

.particle-2 {
    top: 45%;
    left: 25%;
    animation: particleFloat 10s ease-in-out infinite 2s;
}

.particle-3 {
    top: 70%;
    left: 18%;
    animation: particleFloat 12s ease-in-out infinite 1s;
}

.particle-4 {
    top: 30%;
    right: 20%;
    animation: particleFloat 9s ease-in-out infinite 3s;
}

.particle-5 {
    top: 60%;
    right: 15%;
    animation: particleFloat 11s ease-in-out infinite 1.5s;
}

.particle-6 {
    top: 15%;
    left: 50%;
    animation: particleFloat 13s ease-in-out infinite 2.5s;
}

.particle-7 {
    bottom: 25%;
    left: 40%;
    animation: particleFloat 10s ease-in-out infinite 4s;
}

.particle-8 {
    top: 55%;
    right: 35%;
    animation: particleFloat 14s ease-in-out infinite 0.5s;
}

@keyframes particleFloat {
    0%, 100% {
        transform: translate(0, 0) scale(1);
        opacity: 0.6;
    }
    25% {
        transform: translate(30px, -40px) scale(1.2);
        opacity: 0.8;
    }
    50% {
        transform: translate(-20px, -80px) scale(1);
        opacity: 0.4;
    }
    75% {
        transform: translate(40px, -60px) scale(1.1);
        opacity: 0.7;
    }
}

/* Grid Pattern */
.grid-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
    background-size: 60px 60px;
    opacity: 0.5;
    z-index: 2;
}

/* Light Sweep */
.light-sweep {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255, 255, 255, 0.04) 50%,
        transparent 100%
    );
    animation: lightSweep 15s ease-in-out infinite;
    z-index: 2;
}

@keyframes lightSweep {
    0%, 10% {
        left: -100%;
    }
    50%, 60% {
        left: 100%;
    }
    100% {
        left: 100%;
    }
}

/* Marka İçeriği */
.brand-content {
    position: relative;
    z-index: 10;
    text-align: center;
    color: var(--white);
    animation: fadeUp 1.2s ease-out;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Logo Wrapper */
.logo-wrapper {
    position: relative;
    width: 320px;
    height: 320px;
    margin: 0 auto 45px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Orbit Halkalar */
.orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    transform-origin: center;
}

.orbit-1 {
    width: 300px;
    height: 300px;
    margin-left: -150px;
    margin-top: -150px;
    animation: orbitRotate 25s linear infinite;
}

.orbit-2 {
    width: 230px;
    height: 230px;
    margin-left: -115px;
    margin-top: -115px;
    animation: orbitRotate 18s linear infinite reverse;
}

.orbit-3 {
    width: 160px;
    height: 160px;
    margin-left: -80px;
    margin-top: -80px;
    animation: orbitRotate 12s linear infinite;
}

@keyframes orbitRotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Logo Glow */
.logo-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 240px;
    height: 240px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    animation: glowPulse 4s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.15);
        opacity: 0.35;
    }
}

/* Logo Container */
.logo-container {
    position: relative;
    width: 180px;
    height: 180px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(25px);
    border-radius: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.4);
    border: 2px solid rgba(255, 255, 255, 0.2);
    z-index: 5;
}

.logo-icon {
    font-size: 95px;
    color: var(--white);
    text-shadow: 0 5px 30px rgba(0, 0, 0, 0.5);
    animation: logoBreath 3.5s ease-in-out infinite;
}

@keyframes logoBreath {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.06);
    }
}

/* Marka Başlık */
.brand-title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 16px;
    letter-spacing: -0.5px;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.brand-name {
    display: inline-block;
    margin-right: 12px;
}

.brand-cms {
    display: inline-block;
}

.gradient-text {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #ec4899 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
}

@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

.brand-description {
    font-size: 19px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    letter-spacing: 0.3px;
    margin-bottom: 55px;
}

/* Özellik Kartları */
.feature-cards {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
}

.feature-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 18px;
    padding: 26px 32px;
    min-width: 155px;
    text-align: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    animation: cardFadeIn 0.6s ease-out backwards;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.feature-card:nth-child(1) {
    animation-delay: 0.3s;
}

.feature-card:nth-child(2) {
    animation-delay: 0.5s;
}

.feature-card:nth-child(3) {
    animation-delay: 0.7s;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.feature-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.14);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
    border-color: rgba(255, 255, 255, 0.25);
}

.feature-icon {
    font-size: 36px;
    margin-bottom: 12px;
    color: rgba(255, 255, 255, 0.95);
}

.feature-title {
    font-size: 16px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: 0.3px;
}

/* Neon Wave Alt Bölüm - KALDIRILDI */

/* ============================================
   Sağ Panel - Login Formu
   ============================================ */
.login-right-panel,
.ui-login__form-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 50px;
    background: var(--bg-gray);
}

.login-form-container {
    width: 100%;
    max-width: 520px;
    background: var(--white);
    border-radius: 28px;
    padding: 60px;
    box-shadow: var(--shadow-xl);
    border: 1px solid var(--border-color);
    animation: fadeUp 1.2s ease-out 0.4s both;
}

.form-header {
    text-align: center;
    margin-bottom: 42px;
}

.login-security-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(15, 82, 240, 0.08);
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(15, 82, 240, 0.15);
}

.login-security-icon i {
    font-size: 32px;
    color: var(--primary-blue);
}

.form-title {
    font-size: 38px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
    letter-spacing: -0.5px;
}

.form-description {
    font-size: 17px;
    color: var(--text-medium);
}

/* Alert */
.alert-box {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 18px;
    border-radius: 14px;
    margin-bottom: 32px;
    font-size: 15px;
    line-height: 1.5;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.alert-error {
    background: rgba(239, 68, 68, 0.08);
    color: #991b1b;
    border: 1px solid rgba(239, 68, 68, 0.2);
}

.alert-success {
    background: rgba(16, 185, 129, 0.08);
    color: #065f46;
    border: 1px solid rgba(16, 185, 129, 0.2);
}

.alert-box.is-hiding {
    opacity: 0;
    transform: translateY(-0.5rem);
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
    .alert-box.is-hiding {
        transition: none;
    }
}

.alert-icon {
    font-size: 22px;
    flex-shrink: 0;
    margin-top: 1px;
}

.alert-text {
    flex: 1;
}

/* Login Form */
.login-form {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.field-label {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    letter-spacing: 0.3px;
}

.input-group {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon-left {
    position: absolute;
    left: 22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: var(--text-light);
    pointer-events: none;
    z-index: 2;
}

.form-input {
    width: 100%;
    height: 60px;
    padding: 0 22px 0 58px;
    font-size: 16px;
    font-family: inherit;
    color: var(--text-dark);
    background: var(--white);
    border: 2px solid var(--border-color);
    border-radius: 15px;
    outline: none;
    transition: all 0.2s ease;
}

.form-input::placeholder {
    color: var(--text-light);
}

.form-input:hover {
    border-color: #cbd5e1;
}

.form-input:focus {
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 5px rgba(15, 82, 240, 0.12);
}

.input-with-toggle {
    padding-right: 58px;
}

.password-toggle-btn {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: none;
    border-radius: 10px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 2;
}

.password-toggle-btn:hover {
    background: var(--bg-gray);
    color: var(--text-medium);
}

.password-toggle-btn:focus {
    outline: 2px solid var(--primary-blue);
    outline-offset: 2px;
}

.password-toggle-btn i {
    font-size: 20px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    user-select: none;
    min-height: var(--touch-target-min);
}

.checkbox-input {
    width: 22px;
    height: 22px;
    cursor: pointer;
    accent-color: var(--primary-blue);
    position: relative;
    isolation: isolate;
    flex-shrink: 0;
}

.checkbox-input::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: var(--hit-area-min);
    height: var(--hit-area-min);
    transform: translate(-50%, -50%);
}

.checkbox-text {
    font-size: 15px;
    color: var(--text-dark);
}

.submit-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    height: 60px;
    padding: 0 36px;
    font-size: 17px;
    font-weight: 600;
    font-family: inherit;
    color: var(--white);
    background: linear-gradient(135deg, var(--primary-blue) 0%, var(--primary-dark) 100%);
    border: none;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 6px 18px rgba(15, 82, 240, 0.4);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(15, 82, 240, 0.5);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:focus {
    outline: 3px solid rgba(15, 82, 240, 0.3);
    outline-offset: 2px;
}

.btn-icon {
    font-size: 20px;
}

.btn-text {
    letter-spacing: 0.3px;
}

.form-footer {
    margin-top: 36px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.security-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    color: var(--text-light);
    font-size: 14px;
}

.security-badge i {
    color: var(--success);
    font-size: 16px;
}

/* Google reCAPTCHA v3 — badge gizleme + login marka bildirimi (Google FAQ) */
.grecaptcha-badge {
    visibility: hidden !important;
}

.login-recaptcha-notice {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 8px;
    margin: 14px 0 0;
    color: var(--text-light);
    font-size: 12px;
    line-height: 1.45;
    text-align: center;
}

.login-recaptcha-notice i {
    color: var(--primary, #2563eb);
    font-size: 14px;
    margin-top: 1px;
    flex-shrink: 0;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 1024px) {
    .login-left-panel {
        display: none;
    }

    .login-right-panel {
        flex: 1;
        padding: 40px 30px;
    }
}

@media (max-width: 640px) {
    .login-right-panel {
        padding: 30px 20px;
    }

    .login-form-container {
        padding: 40px 32px;
        border-radius: 24px;
    }

    .form-title {
        font-size: 32px;
    }

    .form-description {
        font-size: 16px;
    }

    .form-input,
    .submit-btn {
        height: 54px;
    }
}

@media (max-width: 375px) {
    .login-form-container {
        padding: 32px 24px;
    }

    .form-title {
        font-size: 28px;
    }

    .form-input,
    .submit-btn {
        height: 52px;
        font-size: 15px;
    }
}

/* ============================================
   Prefers Reduced Motion
   ============================================ */
.ui-login__logo {
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-4);
}

.ui-login__logo-img {
    max-width: 160px;
    max-height: 64px;
    width: auto;
    height: auto;
    object-fit: contain;
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .blur-planet,
    .particle,
    .light-sweep,
    .orbit-ring,
    .logo-glow,
    .logo-icon,
    .gradient-text {
        animation: none !important;
    }
}
