/* Modern CSS Style for Payment Page */

:root {
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-color: #667eea;
    --text-dark: #2d3748;
    --text-light: #718096;
    --white: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.90);
    --glass-border: rgba(255, 255, 255, 0.5);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: 'Outfit', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(45deg, #f3f4f6, #e5e7eb); 
    /* Arkaplan görseli varsa: background-image: url('bg.jpg'); */
    background-size: cover;
    overflow-x: hidden;
}

.main-wrapper {
    width: 100%;
    max-width: 450px;
    padding: 20px;
    position: relative;
    z-index: 1;
}

/* Glassmorphism Kart */
.payment-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 40px 30px;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
    animation: slideUpFade 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Header */
.card-header {
    text-align: center;
    margin-bottom: 35px;
}

.logo-area {
    width: 100px;
    height: auto;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.logo {
    max-width: 100%;
    max-height: 80px;
}

.card-header h2 {
    margin: 0;
    color: var(--text-dark);
    font-size: 1.5rem;
    font-weight: 700;
}

.card-header p {
    margin: 8px 0 0;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* Modern Inputlar */
.input-group {
    position: relative;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInUp 0.5s forwards;
}

.modern-input {
    width: 100%;
    padding: 16px 16px 16px 45px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    font-size: 1rem;
    color: var(--text-dark);
    transition: all 0.3s ease;
    box-sizing: border-box;
    font-family: inherit;
    resize: vertical;
}

.modern-input:focus {
    border-color: var(--primary-color);
    background: white;
    outline: none;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.1);
}

/* Floating Label */
.input-group label {
    position: absolute;
    left: 45px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
    font-size: 0.95rem;
    pointer-events: none;
    transition: all 0.3s ease;
    background: transparent;
    padding: 0 4px;
}

.modern-input:focus ~ label,
.modern-input:not(:placeholder-shown) ~ label {
    top: 0;
    left: 15px;
    transform: translateY(-50%) scale(0.85);
    background: var(--glass-bg);
    color: var(--primary-color);
    font-weight: 600;
    border-radius: 4px;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #a0aec0;
    transition: color 0.3s ease;
}

.modern-input:focus ~ .input-icon {
    color: var(--primary-color);
}

/* Butonlar */
.form-actions {
    display: flex;
    gap: 10px;
    opacity: 0;
    animation: fadeInUp 0.5s forwards;
}

.btn-modern {
    flex: 1;
    padding: 16px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(118, 75, 162, 0.3);
}

.btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(118, 75, 162, 0.4);
}

.btn-reset {
    width: 50px;
    background: #edf2f7;
    color: #718096;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
}

.btn-reset:hover {
    background: #e2e8f0;
    color: #e53e3e;
}

/* Footer */
.footer-badges {
    margin-top: 20px;
    text-align: center;
    color: #718096;
    font-size: 0.85rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    opacity: 0;
    animation: fadeInUp 0.5s forwards;
}

.footer-badges i {
    font-size: 1.5rem;
    color: #a0aec0;
}

/* Loader */
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(5px);
    z-index: 9999;
    display: none;
    justify-content: center;
    align-items: center;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Animasyonlar */
@keyframes slideUpFade {
    from { opacity: 0; transform: translateY(40px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes popIn {
    0% { transform: scale(0); }
    80% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }
.delay-6 { animation-delay: 0.6s; }
.delay-7 { animation-delay: 0.7s; }

@media (max-width: 480px) {
    .payment-card { padding: 30px 20px; }
}
