/**
 * Kullanici Giris/Kayit Sayfasi Stilleri
 * Responsive ve modern tasarim
 */

/* === GENEL AYARLAR === */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    min-height: 100vh;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    color: #111;
    display: flex;
    flex-direction: column;
    line-height: 1.5;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
}

/* === NAVBAR === */
.navbar {
    width: 100%;
    height: 80px;
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, #cbd5e1 0%, #94a3b8 100%);
    font-weight: bold;
    padding: 0 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.navbar .logo {
    background: linear-gradient(135deg, #a3e635 0%, #84cc16 100%);
    width: 200px;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 0 12px 12px 0;
    margin-left: -20px;
    padding: 10px;
}

.navbar .logo img {
    max-height: 60px;
    object-fit: contain;
}

.navbar .login {
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
    min-width: 100px;
    height: 60px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-left: auto;
    color: white;
    border-radius: 12px;
    padding: 10px 15px;
}

.navbar .login img {
    max-height: 40px;
}

.nav-links {
    display: flex;
    gap: 40px;
    font-size: 16px;
    margin-left: 40px;
}

.nav-links a {
    text-decoration: none;
    color: inherit;
}

.nav-links p {
    cursor: pointer;
    padding: 10px 16px;
    border-radius: 8px;
    transition: background 0.3s, color 0.3s, transform 0.2s;
    margin: 0;
}

.nav-links p:hover {
    background: #64748b;
    color: #fff;
    transform: translateY(-2px);
}

/* === FORM CONTAINER === */
.yazi {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 20px;
}

.form-container {
    width: 100%;
    max-width: 400px;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    padding: 40px 30px;
}

/* === MESAJ KUTULARI === */
.mesaj {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.mesaj-hata {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.mesaj-basari {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
}

/* === TABS === */
.tabs {
    display: flex;
    justify-content: space-around;
    margin-bottom: 25px;
    gap: 10px;
}

.tab {
    cursor: pointer;
    font-weight: bold;
    padding: 12px 20px;
    flex: 1;
    border-radius: 10px;
    background: #e2e8f0;
    text-align: center;
    transition: all 0.3s;
    font-size: 14px;
}

.tab:hover {
    background: #cbd5e1;
}

.tab.active {
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
    color: white;
    box-shadow: 0 4px 12px rgba(56, 189, 248, 0.3);
}

/* === FORM === */
form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

input[type="text"],
input[type="email"],
input[type="password"] {
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    border-radius: 10px;
    outline: none;
    font-size: 15px;
    transition: border-color 0.3s, box-shadow 0.3s;
    width: 100%;
}

input:focus {
    border-color: #38bdf8;
    box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}

input::placeholder {
    color: #94a3b8;
}

button[type="submit"] {
    background: linear-gradient(135deg, #38bdf8 0%, #0ea5e9 100%);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 10px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(56, 189, 248, 0.4);
}

button[type="submit"]:active {
    transform: translateY(0);
}

/* === SIFRE GUC GOSTERGESI === */
.sifre-guc {
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
    text-align: center;
    margin-top: -10px;
}

.sifre-guc.zayif {
    background: #fef2f2;
    color: #dc2626;
}

.sifre-guc.orta {
    background: #fffbeb;
    color: #d97706;
}

.sifre-guc.guclu {
    background: #f0fdf4;
    color: #16a34a;
}

/* === RESPONSIVE === */
@media screen and (max-width: 768px) {
    .navbar {
        height: auto;
        flex-wrap: wrap;
        padding: 10px;
        gap: 10px;
    }

    .navbar .logo {
        width: 120px;
        height: 50px;
        margin-left: 0;
        border-radius: 8px;
    }

    .nav-links {
        order: 3;
        width: 100%;
        justify-content: center;
        margin-left: 0;
        gap: 15px;
    }

    .nav-links p {
        padding: 8px 12px;
        font-size: 14px;
    }

    .navbar .login {
        height: 50px;
        min-width: 60px;
        padding: 8px 12px;
    }

    .yazi {
        padding: 20px 15px;
    }

    .form-container {
        padding: 30px 20px;
    }
}

@media screen and (max-width: 480px) {
    .navbar .logo {
        width: 100px;
    }

    .nav-links {
        gap: 10px;
    }

    .nav-links p {
        padding: 6px 10px;
        font-size: 13px;
    }

    .tabs {
        flex-direction: column;
    }

    .tab {
        width: 100%;
    }

    .form-container {
        padding: 25px 15px;
    }

    input[type="text"],
    input[type="email"],
    input[type="password"] {
        padding: 12px 14px;
        font-size: 14px;
    }

    button[type="submit"] {
        padding: 12px;
        font-size: 15px;
    }
}
