/* Reset ve Temel Stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    background-size: 400% 400%;
    animation: gradientBG 15s ease infinite;
    padding: 20px;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* Ana Kutu Stili */
.box {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.box::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transform: rotate(45deg);
    animation: shine 3s infinite linear;
}

@keyframes shine {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

/* Form Başlığı */
h2 {
    text-align: center;
    color: #333;
    margin-bottom: 30px;
    font-weight: 600;
    font-size: 28px;
    position: relative;
    padding-bottom: 15px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: linear-gradient(to right, #667eea, #764ba2);
    border-radius: 2px;
}

/* Input Kutuları */
.inputBox {
    position: relative;
    margin-bottom: 30px;
}

.inputBox input {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.9);
    border: 2px solid #e1e1e1;
    border-radius: 10px;
    font-size: 16px;
    color: #333;
    transition: all 0.3s ease;
    outline: none;
}

.inputBox span {
    position: absolute;
    left: 15px;
    top: 15px;
    padding: 0 5px;
    pointer-events: none;
    font-size: 16px;
    color: #666;
    transition: all 0.3s ease;
    background: white;
}

.inputBox input:valid ~ span,
.inputBox input:focus ~ span {
    transform: translateY(-25px);
    font-size: 14px;
    color: #667eea;
    font-weight: 500;
}

.inputBox i {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: linear-gradient(to right, #667eea, #764ba2);
    border-radius: 4px;
    transition: all 0.3s ease;
    transform: scaleX(0);
    transform-origin: left;
}

.inputBox input:valid ~ i,
.inputBox input:focus ~ i {
    transform: scaleX(1);
}

/* CAPTCHA Özel Stil */
.captcha-box span {
    font-weight: 600;
    color: #333;
}

.captcha-box input {
    text-align: center;
    font-weight: bold;
    font-size: 18px;
    letter-spacing: 2px;
}

/* Submit Butonu */
input[type="submit"] {
    width: 100%;
    padding: 15px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    border-radius: 10px;
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

input[type="submit"]:active {
    transform: translateY(0);
}

/* Linkler */
.links {
    text-align: center;
    margin-top: 25px;
    padding-top: 20px;
    border-top: 1px solid #e1e1e1;
}

.back-link {
    color: #667eea;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.back-link:hover {
    color: #764ba2;
    text-decoration: underline;
    transform: translateX(-5px);
}

/* Responsive Tasarım */
@media (max-width: 480px) {
    .box {
        padding: 30px 20px;
        margin: 10px;
    }
    
    h2 {
        font-size: 24px;
    }
    
    .inputBox input {
        padding: 12px;
    }
    
    input[type="submit"] {
        padding: 12px;
    }
}

/* Loading Animasyonu */
@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.loading {
    animation: pulse 1.5s infinite;
}

/* Hata ve Başarı Durumları için Input Stilleri */
.inputBox input.error {
    border-color: #ef4444;
}

.inputBox input.success {
    border-color: #10b981;
}

/* Placeholder Stili */
::placeholder {
    color: #999;
    opacity: 1;
}

:-ms-input-placeholder {
    color: #999;
}

::-ms-input-placeholder {
    color: #999;
}