/* ===== RESET ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Poppins', sans-serif;
    overflow: hidden;
    height: 100vh;
}

/* ===== WRAPPER — Sıcak, canlı kreş renkleri, MOR YOK ===== */
.login-wrapper {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg,
        #FF6B6B 0%,
        #FF8E53 20%,
        #FFC947 40%,
        #43C6AC 60%,
        #4facfe 80%,
        #FF6B6B 100%
    );
    background-size: 400% 400%;
    animation: bgShift 18s ease infinite;
}

@keyframes bgShift {
    0%   { background-position: 0% 50%; }
    50%  { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ===== FLOATING EMOJIS ===== */
.floating-icons {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
}

.float-icon {
    position: absolute;
    opacity: 0.45;
    animation: floatUp 22s ease-in-out infinite;
    filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

.float-icon:nth-child(1)  { left:  6%; top: 12%; font-size: 58px; animation-delay: 0s; }
.float-icon:nth-child(2)  { left: 84%; top: 20%; font-size: 44px; animation-delay: 3s; }
.float-icon:nth-child(3)  { left: 14%; top: 72%; font-size: 52px; animation-delay: 6s; }
.float-icon:nth-child(4)  { left: 76%; top: 62%; font-size: 48px; animation-delay: 2s; }
.float-icon:nth-child(5)  { left: 44%; top:  8%; font-size: 62px; animation-delay: 4s; }
.float-icon:nth-child(6)  { left: 22%; top: 86%; font-size: 46px; animation-delay: 7s; }
.float-icon:nth-child(7)  { left: 88%; top: 78%; font-size: 50px; animation-delay: 5s; }
.float-icon:nth-child(8)  { left:  4%; top: 44%; font-size: 56px; animation-delay: 8s; }
.float-icon:nth-child(9)  { left: 91%; top: 48%; font-size: 44px; animation-delay: 1s; }
.float-icon:nth-child(10) { left: 58%; top: 84%; font-size: 52px; animation-delay: 9s; }

@keyframes floatUp {
    0%, 100% { transform: translateY(0)   rotate(0deg)   scale(1);    }
    25%       { transform: translateY(-35px) rotate(8deg)  scale(1.12); }
    50%       { transform: translateY(-70px) rotate(-6deg) scale(0.95); }
    75%       { transform: translateY(-35px) rotate(4deg)  scale(1.06); }
}

/* ===== CARD ===== */
.login-container {
    position: relative;
    z-index: 2;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.login-card {
    background: rgba(255,255,255,0.93);
    backdrop-filter: blur(28px);
    border-radius: 28px;
    box-shadow:
        0 30px 80px rgba(0,0,0,0.22),
        0 0 0 3px rgba(255,255,255,0.7);
    overflow: hidden;
    max-width: 420px;
    width: 100%;
    animation: cardIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes cardIn {
    from { opacity: 0; transform: translateY(80px) scale(0.85); }
    to   { opacity: 1; transform: translateY(0)    scale(1);    }
}

/* ===== LOGO SECTION ===== */
.logo-section {
    text-align: center;
    padding: 32px 28px 22px;
    background: linear-gradient(160deg,
        rgba(255, 107, 107, 0.12) 0%,
        rgba(255, 201, 71, 0.12) 50%,
        rgba(67, 198, 172, 0.12) 100%
    );
    position: relative;
    overflow: hidden;
}

.logo-section::before {
    content: '🌸';
    position: absolute;
    top: 10px; left: 16px;
    font-size: 26px;
    opacity: 0.55;
    animation: spin 9s linear infinite;
}

.logo-section::after {
    content: '🦋';
    position: absolute;
    top: 12px; right: 18px;
    font-size: 24px;
    opacity: 0.55;
    animation: flutter 4s ease-in-out infinite;
}

@keyframes spin    { to { transform: rotate(360deg); } }
@keyframes flutter {
    0%,100% { transform: translateY(0) translateX(0); }
    30%     { transform: translateY(-10px) translateX(5px); }
    60%     { transform: translateY(-5px) translateX(-4px); }
}

.logo-container {
    width: 96px;
    height: 96px;
    margin: 0 auto 16px;
    position: relative;
    animation: logoFloat 5s ease-in-out infinite;
}

@keyframes logoFloat {
    0%,100% { transform: translateY(0); }
    50%     { transform: translateY(-18px); }
}

@keyframes logoPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.logo-container img {
    width: 100%; height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 12px 24px rgba(255,107,107,0.4));
    transition: transform 0.3s;
    animation: logoPulse 3s ease-in-out infinite;
}

.logo-sparkle {
    position: absolute;
    width: 9px; height: 9px;
    border-radius: 50%;
    animation: sparkle 2.5s infinite;
}
.logo-sparkle:nth-child(1) { top:8%;  left:8%;  background:#FFC947; box-shadow:0 0 10px #FFC947; animation-delay:0s; }
.logo-sparkle:nth-child(2) { top:15%; right:10%; background:#FF6B6B; box-shadow:0 0 10px #FF6B6B; animation-delay:0.8s; }
.logo-sparkle:nth-child(3) { bottom:10%; left:15%; background:#43C6AC; box-shadow:0 0 10px #43C6AC; animation-delay:1.6s; }

@keyframes sparkle {
    0%,100% { opacity:0; transform:scale(0); }
    50%     { opacity:1; transform:scale(2); }
}

/* ===== BRAND TITLE — Poppins 900, Türkçe tam destekli ===== */
.brand-title {
    font-family: 'Poppins', sans-serif;
    font-size: 46px;
    font-weight: 900;
    margin-bottom: 6px;
    letter-spacing: 1px;
    line-height: 1.1;
    display: block;
}

.brand-title .letter {
    display: inline-block;
    opacity: 0;
    transform: translateY(40px) scale(0.4) rotate(-10deg);
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 35%, #FFC947 65%, #43C6AC 100%);
    background-size: 300% 300%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation:
        letterIn 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) forwards,
        letterColor 6s ease-in-out infinite;
    filter: drop-shadow(2px 3px 0 rgba(255,107,107,0.25));
}

@keyframes letterIn {
    0%   { opacity:0; transform: translateY(40px) scale(0.4) rotate(-10deg); }
    70%  { transform: translateY(-6px) scale(1.1) rotate(3deg); }
    100% { opacity:1; transform: translateY(0) scale(1) rotate(0deg); }
}

@keyframes letterColor {
    0%,100% { background-position: 0% 50%;   filter: drop-shadow(2px 3px 0 rgba(255,107,107,0.3)); }
    33%     { background-position: 50% 50%;  filter: drop-shadow(2px 3px 0 rgba(255,201,71,0.3)); }
    66%     { background-position: 100% 50%; filter: drop-shadow(2px 3px 0 rgba(67,198,172,0.3)); }
}

.brand-subtitle {
    font-size: 11px;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    opacity: 0;
    animation: fadeUp 0.6s 1.2s ease forwards;
}

@keyframes fadeUp {
    from { opacity:0; transform:translateY(12px); }
    to   { opacity:1; transform:translateY(0); }
}

/* ===== FORM SECTION ===== */
.form-section {
    padding: 28px 32px 32px;
    background: linear-gradient(180deg, #fef9f0 0%, #f8fafc 100%);
}

.form-label {
    font-weight: 700;
    color: #1e293b;
    font-size: 13px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.form-label i { color: #FF6B6B; font-size: 15px; }

.input-wrapper {
    position: relative;
    margin-bottom: 18px;
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 18px;
    background: linear-gradient(135deg, #FF6B6B, #43C6AC);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    z-index: 3;
}

.form-control {
    border-radius: 14px;
    border: 2.5px solid #e2e8f0;
    padding: 14px 18px 14px 48px;
    font-size: 14px;
    font-weight: 500;
    background: #f1f5f9;
    color: #1e293b;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.form-control:focus {
    border-color: #FF6B6B;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(255,107,107,0.15), inset 0 0 0 transparent;
    transform: translateY(-2px);
    outline: none;
}

.form-control::placeholder { color: #94a3b8; font-weight: 400; }

.password-toggle {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #94a3b8;
    font-size: 18px;
    cursor: pointer;
    z-index: 3;
    padding: 4px;
    transition: all 0.2s;
}

.password-toggle:hover {
    color: #FF6B6B;
    transform: translateY(-50%) scale(1.2);
}

/* ===== CHECKBOX ===== */
.form-check {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    margin-bottom: 20px;
    background: linear-gradient(135deg, rgba(255,107,107,0.08), rgba(67,198,172,0.08));
    border: 2px solid rgba(255,107,107,0.15);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.25s;
}

.form-check:hover {
    background: linear-gradient(135deg, rgba(255,107,107,0.15), rgba(67,198,172,0.15));
    border-color: rgba(255,107,107,0.3);
    transform: translateX(3px);
}

.form-check-input {
    width: 20px; height: 20px;
    border-radius: 7px;
    border: 2.5px solid #cbd5e1;
    background: #f8fafc;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    flex-shrink: 0;
    position: relative;
    transition: all 0.25s;
    box-shadow: inset 0 2px 3px rgba(0,0,0,0.07);
}

.form-check-input:hover {
    border-color: #FF6B6B;
    transform: scale(1.1);
}

.form-check-input:checked {
    background: linear-gradient(135deg, #FF6B6B, #FFC947);
    border-color: #FF6B6B;
    box-shadow: 0 3px 10px rgba(255,107,107,0.4);
}

.form-check-input:checked::after {
    content: '✓';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 13px;
    font-weight: 900;
}

.form-check-label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    cursor: pointer;
    user-select: none;
    margin: 0;
}

/* ===== BUTTON ===== */
.btn-login {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 40%, #FFC947 70%, #43C6AC 100%);
    background-size: 250% 250%;
    box-shadow: 0 8px 24px rgba(255,107,107,0.45);
    text-shadow: 0 1px 3px rgba(0,0,0,0.15);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
    animation: btnPulse 3s ease-in-out infinite;
}

@keyframes btnPulse {
    0%,100% { box-shadow: 0 8px 24px rgba(255,107,107,0.45); }
    50%     { box-shadow: 0 8px 30px rgba(67,198,172,0.5); }
}

.btn-login::before {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
    transition: left 0.6s;
}

.btn-login:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 35px rgba(255,107,107,0.55);
    background-position: 100% 0;
}

.btn-login:hover::before { left: 100%; }
.btn-login:active { transform: translateY(-1px); }

.btn-login i { font-size: 17px; margin-right: 8px; }

.btn-login:disabled {
    opacity: 0.8;
    cursor: not-allowed;
    transform: none;
}

/* ===== ALERT ===== */
.alert {
    border-radius: 14px;
    border: none;
    padding: 13px 16px;
    font-size: 13px;
    font-weight: 500;
    margin-bottom: 18px;
    animation: shake 0.4s ease;
}

@keyframes shake {
    0%,100% { transform: translateX(0); }
    25%     { transform: translateX(-8px); }
    75%     { transform: translateX(8px); }
}

.alert-danger {
    background: linear-gradient(135deg, #FF6B6B, #FF8E53);
    color: white;
    box-shadow: 0 6px 18px rgba(255,107,107,0.35);
}

.alert i { font-size: 15px; margin-right: 7px; }

/* ===== SPINNER ===== */
.spinner-border-sm { width: 1.1rem; height: 1.1rem; border-width: 0.18em; }

/* ===== RESPONSIVE ===== */
@media (max-width: 576px) {
    .login-card { border-radius: 24px; margin: 10px; }
    .logo-section { padding: 28px 22px 18px; }
    .logo-container { width: 82px; height: 82px; }
    .brand-title { font-size: 38px; }
    .form-section { padding: 24px 22px 28px; }
    .float-icon { font-size: 36px !important; }
}

@media (max-width: 400px) {
    .brand-title { font-size: 32px; }
    .logo-container { width: 72px; height: 72px; }
    .form-section { padding: 20px 18px 24px; }
    .form-control { font-size: 13px; padding: 12px 16px 12px 44px; }
    .btn-login { font-size: 14px; padding: 13px; }
}
