* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #000000 !important;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: hidden;
    position: relative;
}

/* Particle Container */
#particles-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.particle {
    position: absolute;
    border-radius: 50%;
    background: white !important;
    border: 2px solid white !important;
    pointer-events: none;
    animation: float linear infinite;
    box-shadow: 0 0 20px white;
    z-index: 5;
    opacity: 1 !important;
}

@keyframes float {
    0% {
        transform: translateX(-100px);
    }
    100% {
        transform: translateX(calc(100vw + 100px));
    }
}

@keyframes floatArrow {
    0% {
        transform: translateX(0);
        opacity: 0.7;
    }
    100% {
        transform: translateX(calc(100vw + 200px));
        opacity: 0.7;
    }
}

.particle-1 {
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    top: 20%;
    left: -50px;
    animation: float 8s linear infinite;
    box-shadow: 0 0 15px white;
    z-index: 2;
}

.particle-2 {
    position: absolute;
    width: 15px;
    height: 15px;
    background: white;
    border-radius: 50%;
    top: 40%;
    left: -50px;
    animation: float 10s linear infinite;
    animation-delay: 1s;
    box-shadow: 0 0 15px white;
    z-index: 2;
}

.particle-3 {
    position: absolute;
    width: 25px;
    height: 25px;
    background: white;
    border-radius: 50%;
    top: 60%;
    left: -50px;
    animation: float 7s linear infinite;
    animation-delay: 2s;
    box-shadow: 0 0 15px white;
    z-index: 2;
}

.particle-4 {
    position: absolute;
    width: 18px;
    height: 18px;
    background: white;
    border-radius: 50%;
    top: 80%;
    left: -50px;
    animation: float 9s linear infinite;
    animation-delay: 3s;
    box-shadow: 0 0 15px white;
    z-index: 2;
}

.particle-5 {
    position: absolute;
    width: 22px;
    height: 22px;
    background: white;
    border-radius: 50%;
    top: 30%;
    left: -50px;
    animation: float 6s linear infinite;
    animation-delay: 4s;
    box-shadow: 0 0 15px white;
    z-index: 2;
}

.particle-6 {
    position: absolute;
    width: 16px;
    height: 16px;
    background: white;
    border-radius: 50%;
    top: 50%;
    left: -50px;
    animation: float 11s linear infinite;
    animation-delay: 0.5s;
    box-shadow: 0 0 15px white;
    z-index: 2;
}

.particle-7 {
    position: absolute;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    top: 70%;
    left: -50px;
    animation: float 8.5s linear infinite;
    animation-delay: 1.5s;
    box-shadow: 0 0 15px white;
    z-index: 2;
}

.particle-8 {
    position: absolute;
    width: 14px;
    height: 14px;
    background: white;
    border-radius: 50%;
    top: 10%;
    left: -50px;
    animation: float 9.5s linear infinite;
    animation-delay: 2.5s;
    box-shadow: 0 0 15px white;
    z-index: 2;
}

.particle-9 {
    position: absolute;
    width: 20px;
    height: 20px;
    background: white;
    border-radius: 50%;
    top: 90%;
    left: -50px;
    animation: float 7.5s linear infinite;
    animation-delay: 3.5s;
    box-shadow: 0 0 15px white;
    z-index: 2;
}

.particle-10 {
    position: absolute;
    width: 19px;
    height: 19px;
    background: white;
    border-radius: 50%;
    top: 35%;
    left: -50px;
    animation: float 10.5s linear infinite;
    animation-delay: 4.5s;
    box-shadow: 0 0 15px white;
    z-index: 2;
}

/* Ana Container */
.login-container {
    display: flex;
    width: 90%;
    max-width: 1000px;
    height: 600px;
    background: rgba(220, 38, 38, 0.15);
    backdrop-filter: blur(20px);
    border-radius: 25px;
    box-shadow: 0 25px 50px rgba(220, 38, 38, 0.3);
    overflow: hidden;
    border: 1px solid rgba(220, 38, 38, 0.3);
    animation: slideIn 0.8s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 10;
}

@keyframes slideIn {
    0% {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Sol Bölüm */
.left-section {
    flex: 1;
    background: transparent;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-right: 1px solid rgba(255, 255, 255, 0.03);
}

.left-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: rotate(0deg) translate(0, 0);
    }
    50% {
        transform: rotate(180deg) translate(20px, -20px);
    }
}

.logo-container {
    text-align: center;
    z-index: 2;
    position: relative;
}

.logo-shape {
    width: 180px;
    height: 180px;
    margin: 0 auto 30px;
    animation: pulse 4s ease-in-out infinite;
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 50%;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.abstract-shape {
    width: 100%;
    height: 100%;
    filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.3));
}

.brand-name {
    color: #dc2626;
    font-size: 48px;
    font-weight: 900;
    text-shadow: 
        0 0 3px rgba(220, 38, 38, 0.3),
        0 2px 10px rgba(0, 0, 0, 0.3);
    letter-spacing: -2px;
    margin-top: 20px;
    position: relative;
    overflow: hidden;
    display: inline-block;
}

.brand-name::before,
.brand-name::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(220, 38, 38, 0.3) 20%,
        #dc2626 50%,
        rgba(220, 38, 38, 0.3) 80%,
        transparent 100%);
    z-index: 1;
}

.brand-name::before {
    top: 0;
    left: -100%;
    animation: flowTop 4s linear infinite;
}

.brand-name::after {
    bottom: 0;
    left: 100%;
    animation: flowBottom 4s linear infinite;
    animation-delay: 2s;
}

@keyframes flowTop {
    0% {
        left: -100%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        left: 100%;
        opacity: 1;
    }
    60% {
        opacity: 0;
    }
    100% {
        left: -100%;
        opacity: 0;
    }
}

@keyframes flowBottom {
    0% {
        left: 100%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    50% {
        left: -100%;
        opacity: 1;
    }
    60% {
        opacity: 0;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

/* Sağ Bölüm */
.right-section {
    flex: 1;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 50px;
    position: relative;
    z-index: 15;
}

/* Tema Toggle */
.theme-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
    display: flex;
    gap: 10px;
    align-items: center;
}

.telegram-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #e9ecef;
    background: white;
    color: #0088cc;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.telegram-btn:hover {
    background: #f8f9fa;
    border-color: #0088cc;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(0, 136, 204, 0.3);
}

.telegram-btn i {
    font-size: 20px;
    transition: transform 0.3s ease;
}

.telegram-btn:hover i {
    transform: scale(1.1);
}

.theme-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    border: 2px solid #e9ecef;
    background: white;
    color: #2c3e50;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.theme-btn:hover {
    background: #f8f9fa;
    border-color: #dc2626;
    transform: scale(1.1);
    box-shadow: 0 4px 15px rgba(220, 38, 38, 0.2);
}

.theme-btn i {
    font-size: 18px;
    transition: transform 0.3s ease;
}

.theme-btn:hover i {
    transform: rotate(20deg);
}

/* Dark Theme */
body.dark-theme {
    background: #000000 !important;
}

body.dark-theme .right-section {
    background: #2d2d2d;
}

body.dark-theme .form-title {
    color: #ffffff;
}

body.dark-theme .form-subtitle {
    color: #b0b0b0;
}

body.dark-theme .input-group input {
    background: #3a3a3a;
    border-color: #4a4a4a;
    color: #ffffff;
}

body.dark-theme .input-group input:focus {
    background: #404040;
    border-color: #dc2626;
}

body.dark-theme .input-group input::placeholder {
    color: #888888;
}

body.dark-theme .input-icon,
body.dark-theme .toggle-password {
    color: #dc2626;
}

body.dark-theme .telegram-btn {
    background: #3a3a3a;
    border-color: #4a4a4a;
    color: #0088cc;
}

body.dark-theme .telegram-btn:hover {
    background: #404040;
    border-color: #0088cc;
}

body.dark-theme .theme-btn {
    background: #3a3a3a;
    border-color: #4a4a4a;
    color: #ffffff;
}

body.dark-theme .theme-btn:hover {
    background: #404040;
    border-color: #dc2626;
}

body.dark-theme .footer-text p {
    color: #888888;
}

.form-container {
    width: 100%;
    max-width: 400px;
}

.form-header {
    text-align: center;
    margin-bottom: 40px;
}

.form-title {
    font-size: 28px;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.title-underline {
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #dc2626, #f87171);
    margin: 0 auto 20px;
    border-radius: 2px;
}

.form-subtitle {
    color: #7f8c8d;
    font-size: 16px;
    font-weight: 500;
}

/* Form Stilleri */
.login-form {
    width: 100%;
}

.input-group {
    position: relative;
    margin-bottom: 25px;
}

.input-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #dc2626;
    font-size: 16px;
    z-index: 2;
}

.input-group input {
    width: 100%;
    padding: 16px 20px 16px 50px;
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    font-size: 16px;
    color: #2c3e50;
    outline: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.input-group input::placeholder {
    color: #adb5bd;
    font-weight: 400;
}

.input-group input:focus {
    border-color: #dc2626;
    background: white;
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
    transform: translateY(-2px);
}

.toggle-password {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: #dc2626;
    cursor: pointer;
    font-size: 16px;
    transition: color 0.3s ease;
    z-index: 2;
}

.toggle-password:hover {
    color: #b91c1c;
}

/* Error Message */
.error-message {
    min-height: 40px;
    color: white !important;
    font-size: 16px !important;
    font-weight: 700;
    text-align: center;
    margin: 15px 0;
    background: #e74c3c !important;
    padding: 15px 20px;
    border-radius: 8px;
    border: 2px solid #c0392b;
    display: none;
    position: relative;
    z-index: 9999;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.5);
    width: 100%;
    box-sizing: border-box;
}

.error-message.show {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    height: auto !important;
    min-height: 40px !important;
}

.error-message[style*="display: block"] {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Butonlar */
.login-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
    margin-bottom: 15px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.login-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 35px rgba(220, 38, 38, 0.4);
}

.login-btn:active {
    transform: translateY(-1px);
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.login-btn:active::before {
    width: 300px;
    height: 300px;
}

.btn-text {
    position: relative;
    z-index: 1;
}

.btn-loader {
    display: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}

.login-btn.loading .btn-text {
    opacity: 0;
}

.login-btn.loading .btn-loader {
    display: block;
}

.free-login-btn {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.3);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.free-login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(239, 68, 68, 0.4);
}

/* Footer */
.footer-text {
    text-align: center;
    margin-top: 30px;
}

.footer-text p {
    color: #95a5a6;
    font-size: 12px;
    font-weight: 500;
}

/* Video Container */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.5s ease;
}

.video-container.show {
    opacity: 1;
    pointer-events: all;
}

.video-container video {
    max-width: 90%;
    max-height: 80vh;
    border-radius: 15px;
    box-shadow: 0 25px 100px rgba(0, 0, 0, 0.7);
}

.back-btn {
    position: absolute;
    top: 30px;
    left: 30px;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: white;
    padding: 12px 24px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.back-btn i {
    font-size: 16px;
}

.back-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateX(-5px);
}

/* Responsive Design */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
        height: auto;
        max-width: 400px;
        margin: 20px;
    }

    .left-section {
        height: 200px;
        padding: 30px;
    }

    .logo-shape {
        width: 120px;
        height: 120px;
        margin-bottom: 20px;
    }

    .brand-name {
        font-size: 32px;
    }

    .right-section {
        padding: 40px 30px;
    }

    .form-title {
        font-size: 24px;
    }

    .back-btn {
        top: 20px;
        left: 20px;
        padding: 10px 20px;
        font-size: 14px;
    }

    .video-container video {
        max-width: 95%;
        max-height: 70vh;
    }
}

@media (max-width: 480px) {
    .login-container {
        width: 95%;
        margin: 10px;
        border-radius: 20px;
    }

    .left-section {
        height: 150px;
        padding: 20px;
    }

    .logo-shape {
        width: 100px;
        height: 100px;
        margin-bottom: 15px;
    }

    .brand-name {
        font-size: 28px;
    }

    .right-section {
        padding: 30px 20px;
    }

    .form-title {
        font-size: 20px;
    }

    .input-group input {
        padding: 14px 18px 14px 48px;
        font-size: 15px;
    }

    .login-btn, .free-login-btn {
        padding: 14px;
        font-size: 15px;
    }
}

/* Extra animations */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.form-container {
    animation: fadeIn 0.8s ease-in-out 0.3s both;
}