* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
}

section {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    overflow: hidden;
}

section .bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

section .trees {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 100;
    pointer-events: none;
}

section .girl {
    position: absolute;
    scale: 0.65;
    pointer-events: none;
    animation: animateGirl 10s linear infinite;
}

@keyframes animateGirl {
    0% {
        transform: translateX(calc(100% + 100vw));
    }
    50% {
        transform: translateX(calc(-100% - 100vw));
    }
    50.01% {
        transform: translateX(calc(-100% - 100vw)) rotateY(180deg);
    }
    100% {
        transform: translateX(calc(100% + 100vw)) rotateY(180deg);
    }
}

.login {
    position: relative;
    padding: 60px;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(15px);
    border: 1px solid #fff;
    border-bottom: 1px solid rgba(255, 255, 255, 0.5);
    border-right: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 20px;
    width: 500px;
    display: flex;
    flex-direction: column;
    gap: 30px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.1);
    z-index: 200;
}

.login h2 {
    position: relative;
    width: 100%;
    text-align: center;
    font-size: 2.5em;
    font-weight: 600;
    color: #8f2c24;
    margin-bottom: 10px;
    display: none;
}

.login .logo-section {
    text-align: center;
    margin-bottom: 30px;
}

.login .logo-section img {
    width: 120px;
    height: auto;
    margin-bottom: 15px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.1));
}

.login .logo-section h3 {
    font-size: 1.8em;
    font-weight: 700;
    color: #8f2c24;
    margin-bottom: 8px;
    letter-spacing: 0.5px;
}

.login .logo-section p {
    font-size: 1em;
    color: #8f2c24;
    font-weight: 500;
    opacity: 0.9;
    margin: 0;
}

.login .inputBox {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.login .inputBox .input-icon {
    font-size: 1.5em;
    color: #8f2c24;
    min-width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login .inputBox input {
    position: relative;
    width: 100%;
    padding: 15px 20px;
    outline: none;
    font-size: 1.25em;
    color: #8f2c24;
    border-radius: 5px;
    background: #fff;
    border: none;
    margin-bottom: 0;
}

.login .inputBox input[type="password"],
.login .inputBox input[type="text"].password-input {
    padding-right: 50px;
}

.login .inputBox.button-box {
    display: block;
    margin-top: 10px;
    margin-bottom: 0;
}

.login .inputBox input::placeholder {
    color: #8f2c24;
}

.login .inputBox #btn {
    position: relative;
    border: none;
    outline: none;
    background: linear-gradient(135deg, #8f2c24 0%, #d64c42 100%);
    color: #fff;
    cursor: pointer;
    font-size: 1.25em;
    font-weight: 500;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    overflow: hidden;
    width: 100%;
    padding: 15px 20px;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(143, 44, 36, 0.3);
}

.login .inputBox #btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.login .inputBox #btn::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.login .inputBox #btn:hover::before {
    width: 400px;
    height: 400px;
}

.login .inputBox #btn:hover::after {
    left: 100%;
}

.login .inputBox #btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(143, 44, 36, 0.5);
}

.login .inputBox #btn:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 6px 20px rgba(143, 44, 36, 0.4);
}

.login .inputBox #btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
}

.login .inputBox #btn .btn-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.login .inputBox #btn .spinner {
    display: none;
    animation: spin 1s linear infinite;
}

.login .inputBox #btn.loading .spinner {
    display: inline-block;
}

.login .inputBox #btn.loading .btn-text {
    display: none;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.leaves {
    position: absolute;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    pointer-events: none;
}

.leaves .set {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.leaves .set div {
    position: absolute;
    display: block;
}

.leaves .set div:nth-child(1) {
    left: 20%;
    animation: animate 20s linear infinite;
}

.leaves .set div:nth-child(2) {
    left: 50%;
    animation: animate 14s linear infinite;
}

.leaves .set div:nth-child(3) {
    left: 70%;
    animation: animate 12s linear infinite;
}

.leaves .set div:nth-child(4) {
    left: 5%;
    animation: animate 15s linear infinite;
}

.leaves .set div:nth-child(5) {
    left: 85%;
    animation: animate 18s linear infinite;
}

.leaves .set div:nth-child(6) {
    left: 90%;
    animation: animate 12s linear infinite;
}

.leaves .set div:nth-child(7) {
    left: 15%;
    animation: animate 14s linear infinite;
}

.leaves .set div:nth-child(8) {
    left: 60%;
    animation: animate 15s linear infinite;
}

@keyframes animate {
    0% {
        opacity: 0;
        top: -10%;
        transform: translateX(20px) rotate(0deg);
    }
    10% {
        opacity: 1;
    }
    20% {
        transform: translateX(-20px) rotate(45deg);
    }
    40% {
        transform: translateX(-20px) rotate(90deg);
    }
    60% {
        transform: translateX(20px) rotate(180deg);
    }
    80% {
        transform: translateX(-20px) rotate(45deg);
    }
    100% {
        top: 110%;
        transform: translateX(20px) rotate(225deg);
    }
}

/* Toast Container - Ortada */
.toast-container {
    z-index: 9999;
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%);
    top: 20px !important;
}

.toast {
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
    min-width: auto;
    max-width: 600px;
    width: auto;
    font-size: 1em;
    display: inline-block;
}

.toast .toast-body {
    padding: 1rem 1.5rem;
    font-weight: 600;
    font-size: 1em;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    white-space: nowrap;
}

.toast .toast-body i {
    font-size: 1.3em;
}

.toast .btn-close {
    display: none !important;
}

/* Responsive - Mobil */
@media (max-width: 768px) {
    .toast-container {
        top: 10px !important;
        transform: translateX(-50%);
        width: 90%;
        max-width: 90%;
        left: 50% !important;
    }
    
    .toast {
        max-width: 100%;
        width: 100%;
    }
    
    .toast .toast-body {
        white-space: normal;
        word-wrap: break-word;
        font-size: 0.9em;
        padding: 0.8rem 1rem;
    }
}

/* Success Toast - Beyaz Arka Plan + Yeşil Border + Yeşil Yazı */
.toast.bg-success {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border: 3px solid #48c774 !important;
}

.toast.bg-success .toast-body {
    color: #2d8a3e !important;
}

.toast.bg-success .btn-close {
    filter: invert(0.5) sepia(1) saturate(5) hue-rotate(100deg) !important;
}

/* Error Toast - Beyaz Arka Plan + Kırmızı Border + Koyu Yazı */
.toast.bg-danger {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border: 3px solid #e74c3c !important;
}

.toast.bg-danger .toast-body {
    color: #c0392b !important;
}

.toast.bg-danger .btn-close {
    filter: invert(0.3) sepia(1) saturate(5) hue-rotate(340deg) !important;
}

/* Warning Toast - Beyaz Arka Plan + Sarı Border */
.toast.bg-warning {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    border: 3px solid #f39c12 !important;
}

.toast.bg-warning .toast-body {
    color: #d68910 !important;
}

.toast.bg-warning .btn-close {
    filter: invert(0.5) sepia(1) saturate(5) hue-rotate(20deg) !important;
}

/* Password Toggle */
.password-wrapper {
    position: relative;
    width: 100%;
}

.password-toggle {
    position: absolute;
    right: 15px;
    top: 15px;
    background: none;
    border: none;
    color: #8f2c24;
    cursor: pointer;
    font-size: 1.2em;
    padding: 5px 10px;
    transition: all 0.3s ease;
    z-index: 10;
}

.password-toggle:hover {
    color: #d64c42;
    transform: scale(1.1);
}

.password-toggle:active {
    transform: scale(0.95);
}

/* Input Icon Animation */
.login .inputBox .input-icon {
    animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Remember Me Checkbox - Modern Glassmorphism Design */
.remember-me-box {
    margin: 15px 0 20px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.remember-me-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    user-select: none;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.remember-me-label:hover {
    transform: translateX(3px);
}

/* Hide default checkbox */
.remember-me-label input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

/* Custom Checkbox Container */
.remember-me-label .custom-checkbox {
    position: relative;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(143, 44, 36, 0.4);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 15px rgba(143, 44, 36, 0.1);
}

/* Check Icon */
.remember-me-label .check-icon {
    color: #fff;
    font-size: 10px;
    opacity: 0;
    transform: scale(0) rotate(-45deg);
    transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Checked State */
.remember-me-label input[type="checkbox"]:checked + .custom-checkbox {
    background: linear-gradient(135deg, #8f2c24 0%, #d64c42 100%);
    border-color: #8f2c24;
    box-shadow: 0 6px 20px rgba(143, 44, 36, 0.4),
                0 0 0 4px rgba(143, 44, 36, 0.1);
    transform: scale(1.05);
}

.remember-me-label input[type="checkbox"]:checked + .custom-checkbox .check-icon {
    opacity: 1;
    transform: scale(1) rotate(0deg);
}

/* Hover Effect */
.remember-me-label:hover .custom-checkbox {
    border-color: #8f2c24;
    box-shadow: 0 6px 20px rgba(143, 44, 36, 0.2);
    transform: scale(1.05);
}

/* Remember Text */
.remember-me-label .remember-text {
    color: #8f2c24;
    font-size: 0.85em;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.5);
    transition: all 0.3s ease;
}

.remember-me-label:hover .remember-text {
    color: #d64c42;
}

/* Active/Focus State */
.remember-me-label input[type="checkbox"]:focus + .custom-checkbox {
    outline: none;
    box-shadow: 0 0 0 4px rgba(143, 44, 36, 0.2);
}

/* Ripple Effect on Click */
.remember-me-label .custom-checkbox::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    background: rgba(143, 44, 36, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: all 0.5s ease;
}

.remember-me-label input[type="checkbox"]:active + .custom-checkbox::after {
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 1;
    transition: all 0s;
}
