/* ====================================================
   Akademi Token Auth — Kullanıcı Giriş Sayfası Stili
   ==================================================== */

.ata-login-wrapper {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
    padding: 40px 20px;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
}

/* Arka plan animasyonlu daireler */
.ata-login-bg {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.ata-bg-circle {
    position: absolute;
    border-radius: 50%;
    opacity: 0.08;
    animation: ata-float 8s ease-in-out infinite;
}

.ata-bg-circle-1 {
    width: 600px;
    height: 600px;
    background: #4a6cf7;
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.ata-bg-circle-2 {
    width: 400px;
    height: 400px;
    background: #7c3aed;
    bottom: -100px;
    right: -100px;
    animation-delay: 3s;
}

.ata-bg-circle-3 {
    width: 300px;
    height: 300px;
    background: #06b6d4;
    bottom: 30%;
    left: 10%;
    animation-delay: 5s;
}

@keyframes ata-float {
    0%, 100% { transform: translateY(0px) scale(1); }
    50% { transform: translateY(-30px) scale(1.05); }
}

/* Ana konteyner */
.ata-login-container {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 460px;
}

/* Header */
.ata-login-header {
    text-align: center;
    margin-bottom: 32px;
}

.ata-login-logo-placeholder {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.ata-login-logo-placeholder svg {
    width: 72px;
    height: 72px;
    filter: drop-shadow(0 0 20px rgba(74, 108, 247, 0.5));
    animation: ata-pulse-glow 3s ease-in-out infinite;
}

@keyframes ata-pulse-glow {
    0%, 100% { filter: drop-shadow(0 0 20px rgba(74, 108, 247, 0.5)); }
    50% { filter: drop-shadow(0 0 35px rgba(74, 108, 247, 0.8)); }
}

.ata-login-title {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 0 8px !important;
    letter-spacing: -0.5px !important;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
    border: none !important;
    padding: 0 !important;
}

.ata-login-subtitle {
    font-size: 14px;
    color: rgba(255, 255, 255, 0.6);
    margin: 0;
}

/* Uyarı mesajları */
.ata-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.4;
    backdrop-filter: blur(10px);
}

.ata-alert svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.ata-alert-warning {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.ata-alert-info {
    background: rgba(6, 182, 212, 0.15);
    border: 1px solid rgba(6, 182, 212, 0.3);
    color: #22d3ee;
}

/* Giriş kartı */
.ata-login-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 36px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255,255,255,0.05) inset;
}

/* Form */
.ata-login-form {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.ata-form-group {
    margin-bottom: 24px;
}

.ata-form-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.ata-label-icon {
    width: 14px;
    height: 14px;
    color: #4a6cf7;
}

.ata-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
}

.ata-token-input {
    width: 100%;
    padding: 14px 90px 14px 18px !important;
    background: rgba(255, 255, 255, 0.07) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.15) !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    font-size: 14px !important;
    font-family: 'SF Mono', 'Fira Code', 'Fira Mono', 'Roboto Mono', monospace !important;
    letter-spacing: 0.5px;
    transition: all 0.3s ease !important;
    box-shadow: none !important;
    outline: none !important;
    box-sizing: border-box !important;
}

.ata-token-input::placeholder {
    color: rgba(255, 255, 255, 0.3) !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    font-size: 13px !important;
}

.ata-token-input:focus {
    border-color: #4a6cf7 !important;
    background: rgba(74, 108, 247, 0.1) !important;
    box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.2) !important;
}

.ata-token-input.ata-input-error {
    border-color: #ef4444 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.2) !important;
}

.ata-token-input.ata-input-success {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2) !important;
}

.ata-paste-btn,
.ata-eye-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 6px;
    color: rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ata-paste-btn {
    right: 48px;
}

.ata-eye-btn {
    right: 12px;
}

.ata-paste-btn:hover,
.ata-eye-btn:hover {
    color: #4a6cf7;
    background: rgba(74, 108, 247, 0.1);
}

.ata-paste-btn svg,
.ata-eye-btn svg {
    width: 16px;
    height: 16px;
}

.ata-input-hint {
    display: block;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.35);
    margin-top: 6px;
    padding-left: 2px;
}

/* Mesaj alanı */
.ata-message {
    padding: 12px 16px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ata-message.ata-msg-error {
    background: rgba(239, 68, 68, 0.15);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #fca5a5;
}

.ata-message.ata-msg-success {
    background: rgba(16, 185, 129, 0.15);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #6ee7b7;
}

.ata-message.ata-msg-info {
    background: rgba(74, 108, 247, 0.15);
    border: 1px solid rgba(74, 108, 247, 0.3);
    color: #93c5fd;
}

/* Giriş butonu */
.ata-login-btn {
    width: 100%;
    padding: 16px 28px !important;
    background: linear-gradient(135deg, #4a6cf7 0%, #7c3aed 100%) !important;
    border: none !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 20px rgba(74, 108, 247, 0.4) !important;
    letter-spacing: 0.3px;
    position: relative;
    overflow: hidden;
}

.ata-login-btn:hover:not(:disabled) {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 30px rgba(74, 108, 247, 0.6) !important;
}

.ata-login-btn:active:not(:disabled) {
    transform: translateY(0) !important;
}

.ata-login-btn:disabled {
    opacity: 0.7 !important;
    cursor: not-allowed !important;
}

.ata-btn-text,
.ata-btn-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.ata-spinner {
    width: 18px;
    height: 18px;
    animation: ata-spin 0.8s linear infinite;
}

@keyframes ata-spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* Footer */
.ata-login-footer {
    text-align: center;
    margin-top: 24px;
}

.ata-login-footer p {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.4);
    margin: 4px 0;
}

.ata-footer-icon {
    width: 13px;
    height: 13px;
    color: #4a6cf7;
}

.ata-footer-note {
    font-size: 12px !important;
}

/* Responsive */
@media (max-width: 480px) {
    .ata-login-card {
        padding: 24px 20px;
    }

    .ata-login-title {
        font-size: 22px !important;
    }
}

/* Özel logo */
.ata-login-logo-custom {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.ata-login-logo-custom img {
    max-height: 80px;
    max-width: 220px;
    object-fit: contain;
}

/* Tema logosu uyumu */
.ata-login-header .custom-logo-link img,
.ata-login-header .custom-logo {
    max-height: 80px;
    max-width: 200px;
    display: block;
    margin: 0 auto 20px;
    filter: brightness(0) invert(1);
}

/* ===== GİRİŞ YAPILDI KARTI ===== */

.ata-logged-in-card {
    text-align: center;
    padding: 40px 36px;
}

.ata-logged-in-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(16,185,129,.25), rgba(5,150,105,.25));
    border: 2px solid rgba(16,185,129,.5);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.ata-logged-in-icon svg {
    width: 32px;
    height: 32px;
    color: #10b981;
}

.ata-logged-in-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #ffffff !important;
    margin: 0 0 10px !important;
    border: none !important;
    padding: 0 !important;
}

.ata-logged-in-desc {
    font-size: 14px;
    color: rgba(255,255,255,.6);
    margin: 0 0 28px;
    line-height: 1.6;
}

.ata-logged-in-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ata-logout-from-login-btn {
    width: 100%;
    padding: 12px 20px;
    background: rgba(239,68,68,.1);
    border: 1.5px solid rgba(239,68,68,.3);
    border-radius: 10px;
    color: #fca5a5;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all .2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.ata-logout-from-login-btn:hover {
    background: rgba(239,68,68,.2);
    border-color: rgba(239,68,68,.5);
    color: #f87171;
}

.ata-logout-from-login-btn:disabled {
    opacity: .6;
    cursor: not-allowed;
}

/* ===== KVKK / AYDINLATMA METNİ ===== */

.ata-kvkk-area {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin-top: 20px;
    padding: 16px 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

.ata-kvkk-icon {
    flex-shrink: 0;
    margin-top: 1px;
}

.ata-kvkk-icon svg {
    width: 16px;
    height: 16px;
    color: rgba(255, 255, 255, 0.4);
}

.ata-kvkk-text {
    font-size: 12px;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.5);
}

.ata-kvkk-text p {
    margin: 0 0 6px;
}

.ata-kvkk-text p:last-child {
    margin-bottom: 0;
}

.ata-kvkk-text a {
    color: rgba(74, 108, 247, 0.9);
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s;
}

.ata-kvkk-text a:hover {
    color: #4a6cf7;
}

.ata-kvkk-text strong {
    color: rgba(255, 255, 255, 0.65);
}
