/**
 * SPORAK giriş / kayıt sayfası kabuğu (degerlendirici/login, harici embed örnek)
 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.login-split {
    font-family: 'Segoe UI', Tahoma, sans-serif;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

body.login-split.panel-register {
    overflow-y: auto;
}

.login-header {
    background: #2c3e50;
    color: #fff;
    padding: 15px 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 100;
    flex-shrink: 0;
}

.login-header .logo-section {
    display: flex;
    align-items: center;
    gap: 15px;
}

.login-header img {
    height: 40px;
}

.login-header .header-title {
    font-size: 18px;
    font-weight: 600;
}

.login-wrapper {
    display: flex;
    flex: 1;
    min-height: 0;
}

.login-left {
    flex: 1;
    background-image: url('../img/back.gif');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-left::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(44, 62, 80, 0.8), rgba(93, 173, 226, 0.6));
}

.left-content {
    position: relative;
    z-index: 1;
    color: #fff;
    text-align: center;
    padding: 40px;
}

.left-content img {
    height: 120px;
    margin-bottom: 30px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.left-content h1 {
    font-size: 42px;
    margin-bottom: 20px;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.left-content p {
    font-size: 18px;
    opacity: 0.95;
    line-height: 1.6;
}

.login-right {
    flex: 1;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    overflow-y: auto;
}

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

.login-form-container h2 {
    font-size: 32px;
    color: #2c3e50;
    margin-bottom: 10px;
    font-weight: 700;
}

.login-form-container .subtitle {
    color: #7f8c8d;
    margin-bottom: 24px;
    font-size: 16px;
}

/* Giriş / Kayıt — ayrı sayfalar (login.php ↔ register.php) */
.auth-choice {
    display: flex;
    gap: 12px;
    margin-bottom: 28px;
}

.auth-choice-btn {
    flex: 1;
    text-align: center;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    color: #2c3e50;
    background: #fff;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    transition: background 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.auth-choice-btn:hover {
    border-color: #5dade2;
    color: #2980b9;
}

.auth-choice-btn.is-active {
    background: linear-gradient(135deg, #2c3e50, #34495e);
    border-color: #2c3e50;
    color: #fff;
    pointer-events: none;
    box-shadow: 0 4px 14px rgba(44, 62, 80, 0.25);
}

/* Eski tek sayfa sekmeleri (geriye uyumluluk) */
.auth-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 28px;
    border: 2px solid #e8ecf0;
    border-radius: 8px;
    overflow: hidden;
}

.auth-tabs a {
    flex: 1;
    text-align: center;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    color: #5d6d7e;
    background: #f8fafc;
    transition: background 0.2s, color 0.2s;
}

.auth-tabs a.active {
    background: #2c3e50;
    color: #fff;
}

.auth-panel {
    display: none;
}

.auth-panel.active {
    display: block;
}

.login-form-container .form-group {
    margin-bottom: 18px;
}

.login-form-container .form-group label {
    display: block;
    margin-bottom: 8px;
    color: #2c3e50;
    font-weight: 600;
    font-size: 14px;
}

.login-form-container .form-group input,
.login-form-container .form-group select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    transition: all 0.3s;
}

.login-form-container .form-group input:focus,
.login-form-container .form-group select:focus {
    outline: none;
    border-color: #5dade2;
    box-shadow: 0 0 0 3px rgba(93, 173, 226, 0.1);
}

.login-form-container .kvkk-group {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #555;
}

.login-form-container .kvkk-group input[type="checkbox"] {
    margin-top: 2px;
}

.login-form-container .kvkk-group a {
    color: #5dade2;
    text-decoration: none;
    font-weight: 600;
}

.login-button {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 6px;
}

.login-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(44, 62, 80, 0.3);
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #c33;
    font-size: 14px;
}

.success-message {
    background: #f0fff4;
    color: #276749;
    padding: 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    border-left: 4px solid #48bb78;
    font-size: 14px;
}

.back-link {
    text-align: center;
    margin-top: 25px;
    font-size: 14px;
}

.back-link a {
    color: #5dade2;
    text-decoration: none;
    font-weight: 500;
}

.login-footer {
    background: #2c3e50;
    color: #fff;
    padding: 15px 30px;
    text-align: center;
    font-size: 14px;
    flex-shrink: 0;
}

.login-footer a {
    color: #5dade2;
    text-decoration: none;
    margin: 0 10px;
}

/* Harici sitede iframe — sağ panelde form alanı */
.embed-form-frame {
    width: 100%;
    min-height: 880px;
    border: 0;
    display: block;
}

/* SPORAK embed iframe: login kabuğu + yalnızca kayıt formu */
html,
body.login-split.login-embed-iframe {
    min-height: 100vh;
    min-height: 100dvh;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
    background: #fff;
}

body.login-split.login-embed-iframe .login-wrapper {
    flex: 1 1 auto;
    min-height: 0;
    align-items: stretch;
}

body.login-split.login-embed-iframe .login-left,
body.login-split.login-embed-iframe .login-right {
    min-height: 100%;
}

body.login-split.login-embed-iframe .login-footer {
    margin-top: auto;
    flex-shrink: 0;
}

body.login-split.login-embed-iframe .embed-subtitle {
    color: #7f8c8d;
    font-size: 15px;
    margin-bottom: 20px;
    line-height: 1.45;
}

@media (min-width: 969px) {
    body.login-split:not(.panel-register) {
        height: 100vh;
        overflow: hidden;
    }

    body.login-split:not(.panel-register) .login-wrapper {
        overflow: hidden;
    }
}
