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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

/* Animasyonlu arka plan parçacıkları */
body::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="1" fill="rgba(255,255,255,0.1)"/></svg>') repeat;
    animation: float 20s ease-in-out infinite;
}

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

.login-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
    width: 100%;
    max-width: 450px;
    text-align: center;
    position: relative;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: slideInUp 0.8s ease-out;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo {
    max-width: 220px;
    height: auto;
    display: block;
    margin: 0 auto 30px auto;
    text-align: center;
}

.logo img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 10px;;
}

.form-group {
    margin-bottom: 25px;
    text-align: left;
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    color: #333;
    font-weight: 600;
    font-size: 0.95em;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e1e5e9;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
}

.form-group input:focus {
    outline: none;
    border-color: #00E676;
    box-shadow: 0 0 0 4px rgba(0, 230, 118, 0.15);
    transform: translateY(-2px);
}

.form-group i {
    position: absolute;
    right: 15px;
    top: 45px;
    color: #00E676;
    font-size: 18px;
}

.form-group .password-toggle {
    position: absolute;
    right: 15px;
    top: 45px;
    color: #00E676;
    font-size: 18px;
    cursor: pointer;
    transition: color 0.3s ease;
    z-index: 10;
}
.form-group .password-toggle:hover,
.form-group .password-toggle:focus {
    color: #00D165;
}

.login-btn {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #00E676, #00D165);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.login-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
    transition: left 0.5s;
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:hover {
    background: linear-gradient(135deg, #00D165, #00C155);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 230, 118, 0.4);
}

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

.error-message {
    background: linear-gradient(135deg, #ffebee, #ffcdd2);
    color: #c62828;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    border-left: 4px solid #c62828;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(198, 40, 40, 0.1);
}

.success-message {
    background: linear-gradient(135deg, #e8f5e8, #c8e6c9);
    color: #2e7d32;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 25px;
    border-left: 4px solid #2e7d32;
    font-weight: 500;
    box-shadow: 0 5px 15px rgba(46, 125, 50, 0.1);
}

.footer {
    margin-top: 40px;
    color: #666;
    font-size: 14px;
    line-height: 1.6;
}

.footer a {
    color: #00E676;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #00D165;
    text-decoration: underline;
}

.divider {
    margin: 30px 0;
    border: none;
    height: 1px;
    background: linear-gradient(90deg, transparent, #00E676, transparent);
}

@media (max-width: 600px) {
    body {
        align-items: center;
        justify-content: center;
        min-height: 100vh;
        padding: 0;
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    }
    .login-container {
        max-width: 95vw;
        width: 100%;
        min-height: unset;
        border-radius: 18px;
        padding: 28px 7vw 22px 7vw;
        box-shadow: 0 10px 30px rgba(0,0,0,0.13);
        margin: 0 auto;
        animation: slideInUp 0.8s ease-out;
        background: rgba(255,255,255,0.97);
    }
    .logo {
        max-width: 150px;
        margin-bottom: 22px;
    }
    .form-group label {
        font-size: 0.97em;
        margin-bottom: 6px;
    }
    .form-group input {
        padding: 13px 12px;
        font-size: 15px;
        border-radius: 8px;
    }
    .form-group i {
        font-size: 16px;
        top: 36px;
        right: 10px;
    }
    .login-btn {
        font-size: 16px;
        padding: 12px;
        border-radius: 8px;
        margin-top: 15px;
    }
    .error-message, .success-message {
        font-size: 14px;
        padding: 10px;
        border-radius: 8px;
        margin-bottom: 18px;
    }
    .footer {
        margin-top: 22px;
        font-size: 12px;
        padding-bottom: 10px;
        text-align: center;
    }
    .footer p {
        margin-bottom: 6px;
    }
    .footer a {
        font-size: 13px;
    }
}

@media (max-width: 400px) {
    .login-container {
        padding: 14px 4vw 10px 4vw;
        border-radius: 12px;
    }
    .logo {
        max-width: 150px;
    }
    .form-group input {
        font-size: 14px;
        padding: 10px 8px;
    }
    .login-btn {
        font-size: 15px;
        padding: 10px;
    }
}
