:root {
    --primary-green: #16a34a;
    --primary-dark: #1f2937;
    --text-dark: #111827;
    --text-gray: #6b7280;
    --border-color: #e5e7eb;
    --white: #ffffff;
    --hover-bg: #f9fafb;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--white);
    overflow: hidden;
}

.login-container {
    display: flex;
    height: 100vh;
}

/* Sol Taraf - Slider */
.login-left {
    flex: 0 0 50%;
    background: linear-gradient(135deg, #16a34a 0%, #15803d 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.login-left::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: moveBackground 20s linear infinite;
}

@keyframes moveBackground {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(50px, 50px);
    }
}

.slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slide.active {
    opacity: 1;
}

.slide-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slide-content {
    text-align: center;
    color: var(--white);
}

.slide-icon {
    margin-bottom: 30px;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

.slide-content h2 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 20px;
    color: var(--white);
}

.slide-content p {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 450px;
    margin: 0 auto;
}

.slider-dots {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 2;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.dot.active {
    background: var(--white);
    width: 32px;
    border-radius: 6px;
}

.dot:hover {
    background: rgba(255, 255, 255, 0.6);
}

/* Sağ Taraf - Login Form */
.login-right {
    flex: 0 0 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: #f3f4f6;
}

.login-box {
    width: 100%;
    max-width: 340px;
    background: var(--white);
    padding: 35px 30px;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05), 0 10px 20px rgba(0, 0, 0, 0.08);
}

.login-logo {
    text-align: center;
    margin-bottom: 30px;
}

.login-logo img {
    height: 40px;
    width: auto;
}

.login-box h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 6px;
    text-align: center;
}

.login-subtitle {
    font-size: 14px;
    color: var(--text-gray);
    text-align: center;
    margin-bottom: 30px;
}

.login-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

.login-type-buttons {
    display: flex;
    gap: 8px;
}

.btn-login-type {
    flex: 1;
    padding: 8px;
    border: 1.5px solid #e5e7eb;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    background: #fafafa;
    color: var(--text-dark);
}

.btn-login-type.active {
    background: var(--primary-green);
    color: var(--white);
    border-color: var(--primary-green);
}

.btn-login-type:hover:not(.active) {
    background: #f3f4f6;
    border-color: var(--primary-green);
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 12px;
    color: var(--primary-green);
    pointer-events: none;
    width: 18px;
    height: 18px;
}

.input-wrapper input {
    width: 100%;
    padding: 10px 12px 10px 38px;
    border: 1.5px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
    outline: none;
    background: #fafafa;
}

.input-wrapper input:focus {
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(22, 163, 74, 0.1);
    background: var(--white);
}

.toggle-password {
    position: absolute;
    right: 10px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    color: var(--primary-green);
    transition: color 0.2s;
}

.toggle-password:hover {
    color: #15803d;
}

.toggle-password svg {
    width: 18px;
    height: 18px;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-dark);
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: var(--primary-green);
}

.forgot-password {
    font-size: 13px;
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

.forgot-password:hover {
    color: #15803d;
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
    margin-top: 6px;
}

.btn-login:hover {
    background: #15803d;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
}

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

.btn-login svg {
    width: 18px;
    height: 18px;
}

.login-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.login-footer p {
    font-size: 13px;
    color: var(--text-gray);
}

.login-footer a {
    color: var(--primary-green);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s;
}

.login-footer a:hover {
    color: #15803d;
}

/* Şifremi Unuttum Modalı */
.forgot-password-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.forgot-password-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.forgot-password-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.forgot-password-modal-content {
    position: relative;
    background: var(--white);
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

.forgot-password-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 1;
}

.forgot-password-modal-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.forgot-password-form {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.forgot-password-description {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin: 0 0 8px 0;
    text-align: center;
}

.btn-forgot-password {
    width: 100%;
    padding: 12px;
    background: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
    margin-top: 6px;
}

.btn-forgot-password:hover {
    background: #15803d;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
}

.btn-forgot-password:active {
    transform: translateY(0);
}

.btn-forgot-password svg {
    width: 18px;
    height: 18px;
}

/* Kayıt Modalı */
.register-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.register-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.register-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.register-modal-content {
    position: relative;
    background: var(--white);
    border-radius: 12px;
    width: 90%;
    max-width: 450px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease;
}

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

.register-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    background: var(--white);
    z-index: 1;
}

.register-modal-header h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
}

.btn-close-modal {
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-gray);
    cursor: pointer;
    padding: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    line-height: 1;
}

.btn-close-modal:hover {
    color: var(--text-dark);
    transform: rotate(90deg);
}

.register-form {
    padding: 25px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.password-strength {
    margin-top: 6px;
    font-size: 12px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.password-strength-item {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-gray);
}

.password-strength-item.valid {
    color: var(--primary-green);
}

.password-strength-item svg {
    width: 14px;
    height: 14px;
}

.btn-register {
    width: 100%;
    padding: 12px;
    background: var(--primary-green);
    color: var(--white);
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
    margin-top: 6px;
}

.btn-register:hover {
    background: #15803d;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(22, 163, 74, 0.25);
}

.btn-register:active {
    transform: translateY(0);
}

.btn-register svg {
    width: 18px;
    height: 18px;
}

/* Responsive */
@media (max-width: 968px) {
    .login-container {
        flex-direction: column;
    }
    
    .login-left {
        flex: 0 0 35vh;
        padding: 30px 20px;
    }
    
    .slider {
        height: 250px;
    }
    
    .slide-content h2 {
        font-size: 22px;
    }
    
    .slide-content p {
        font-size: 15px;
    }
    
    .login-right {
        flex: 1;
        padding: 30px 20px;
        background: #f3f4f6;
    }
    
    .login-box {
        max-width: 100%;
        padding: 30px 25px;
    }
}

@media (max-width: 480px) {
    .login-left {
        flex: 0 0 28vh;
        padding: 25px 20px;
    }
    
    .slider {
        height: 180px;
    }
    
    .slide-icon svg {
        width: 50px;
        height: 50px;
    }
    
    .slide-content h2 {
        font-size: 18px;
        margin-bottom: 10px;
    }
    
    .slide-content p {
        font-size: 13px;
    }
    
    .login-right {
        padding: 25px 15px;
        background: #f3f4f6;
    }
    
    .login-box {
        padding: 28px 22px;
    }
    
    .login-box h1 {
        font-size: 22px;
    }
    
    .login-subtitle {
        font-size: 13px;
        margin-bottom: 25px;
    }
    
    .login-logo {
        margin-bottom: 25px;
    }
    
    .login-logo img {
        height: 35px;
    }
}

/* iOS Tarzı Alert Modal */
.custom-alert-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
}

.custom-alert-modal.active {
    display: flex;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.custom-alert-content {
    background: white;
    border-radius: 14px;
    width: 90%;
    max-width: 320px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: slideUp 0.3s ease;
    overflow: hidden;
}

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

.custom-alert-header {
    padding: 20px 20px 10px;
    text-align: center;
}

.custom-alert-header h3 {
    font-size: 17px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.custom-alert-body {
    padding: 0 20px 20px;
    text-align: center;
}

.custom-alert-body p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.5;
    margin: 0;
}

.custom-alert-footer {
    border-top: 0.5px solid rgba(0, 0, 0, 0.1);
}

.custom-alert-btn {
    width: 100%;
    padding: 12px;
    background: transparent;
    border: none;
    color: var(--primary-green);
    font-size: 17px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.custom-alert-btn:hover {
    background: rgba(0, 0, 0, 0.05);
}

.custom-alert-btn:active {
    background: rgba(0, 0, 0, 0.1);
}
