/* Login Sayfası Stilleri */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: #F8F8F8;
    height: 100vh;
    overflow: hidden;
}

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

/* Sol Taraf - Login Form */
.login-form-section {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    background: #F8F8F8;
    position: relative;
    z-index: 2;
    width: 50vw;
    height: 100vh;
}

.login-form-wrapper {
    width: 100%;
    max-width: 400px;
    animation: slideInLeft 0.8s ease-out;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-title {
    font-size: 34px;
    font-weight: 500;
    color: #030303;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-bottom: 12px;
    line-height: 1.5;
}

.login-subtitle {
    font-size: 14px;
    font-weight: 400;
    color: #636364;
    letter-spacing: 0.03em;
    line-height: 1.5;
}

.form-group {
    margin-bottom: 24px;
    position: relative;
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: #181818;
    margin-bottom: 8px;
    letter-spacing: 0.03em;
}

.form-control {
    width: 100%;
    height: 41px;
    padding: 0 16px;
    border: 1px solid rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    background: rgba(196, 196, 196, 0);
    font-size: 14px;
    font-weight: 300;
    color: #181818;
    letter-spacing: 0.03em;
    transition: all 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: #EA454C;
    box-shadow: 0 0 0 3px rgba(234, 69, 76, 0.1);
    background: #fff;
}

.form-control::placeholder {
    color: #636364;
    font-weight: 300;
}

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

.remember-checkbox {
    width: 14px;
    height: 13px;
    border: 1px solid rgba(0, 0, 0, 0.25);
    border-radius: 4px;
    background: rgba(196, 196, 196, 0);
    cursor: pointer;
}

.remember-label {
    font-size: 12px;
    font-weight: 500;
    color: #181818;
    letter-spacing: 0.03em;
    cursor: pointer;
}

.forgot-password {
    font-size: 12px;
    font-weight: 500;
    color: #181818;
    text-decoration: none;
    letter-spacing: 0.03em;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #EA454C;
}

.btn-primary {
    width: 100%;
    height: 41px;
    background: #EA454C;
    border: none;
    border-radius: 12px;
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0px 4px 10px 0px rgba(233, 68, 75, 0.25);
    margin-bottom: 16px;
}

.btn-primary:hover {
    background: #d63e45;
    transform: translateY(-2px);
    box-shadow: 0px 6px 15px 0px rgba(233, 68, 75, 0.35);
}

.btn-google {
    width: 100%;
    height: 41px;
    background: rgba(234, 69, 76, 0);
    border: 1px solid rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    color: #181818;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.03em;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
}

.btn-google:hover {
    background: #f8f8f8;
    transform: translateY(-2px);
    box-shadow: 0px 6px 15px 0px rgba(0, 0, 0, 0.15);
}

.google-icon {
    width: 29px;
    height: 29px;
}

.signup-link {
    text-align: center;
    font-size: 10px;
    font-weight: 500;
    color: #000000;
    letter-spacing: 0.03em;
    line-height: 1.5;
}

.signup-link a {
    color: #EA454C;
    text-decoration: none;
    font-weight: 600;
}

.signup-link a:hover {
    text-decoration: underline;
}

/* Sağ Taraf - Görsel */
.login-visual-section {
    flex: 1;
    position: relative;
    overflow: hidden;
    width: 50vw;
    height: 100vh;
}

.visual-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #C4C4C4;
    z-index: 1;
}

.visual-image-1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/login/login-bg-1.png');
    background-size: cover;
    background-position: left center;
    z-index: 2;
}

.visual-image-2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/images/login/login-bg-2.png');
    background-size: cover;
    background-position: left center;
    z-index: 3;
}

/* Animasyonlar */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.login-visual-section {
    animation: slideInRight 0.8s ease-out;
}

/* Responsive Tasarım */
@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }
    
    .login-visual-section {
        display: none;
    }
    
    .login-form-section {
        padding: 20px;
    }
    
    .login-title {
        font-size: 28px;
    }
}

@media (max-width: 480px) {
    .login-form-wrapper {
        max-width: 100%;
    }
    
    .login-title {
        font-size: 24px;
    }
    
    .remember-forgot {
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
    }
}

/* Hata Mesajları */
.validation-summary-errors {
    background: #fee;
    border: 1px solid #fcc;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 20px;
    color: #c33;
    font-size: 14px;
}

.field-validation-error {
    color: #EA454C;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

/* Loading State */
.btn-loading {
    position: relative;
    pointer-events: none;
}

.btn-loading .btn-text {
    opacity: 0;
}

.btn-loading .btn-spinner {
    display: inline-block !important;
}

.btn-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.spinner {
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Form Validation Styles */
.form-control:invalid {
    border-color: #EA454C;
    box-shadow: 0 0 0 3px rgba(234, 69, 76, 0.1);
}

.form-control:invalid:focus {
    border-color: #EA454C;
    box-shadow: 0 0 0 3px rgba(234, 69, 76, 0.2);
}

/* Custom validation messages */
.form-control:invalid + .field-validation-error::before {
    content: "Bu alan zorunludur";
    color: #EA454C;
    font-size: 12px;
    margin-top: 4px;
    display: block;
}

.form-control[type="email"]:invalid:not(:placeholder-shown) + .field-validation-error::before {
    content: "Geçerli bir e-posta adresi girin";
}

.form-control[type="password"]:invalid:not(:placeholder-shown) + .field-validation-error::before {
    content: "Şifre en az 6 karakter olmalıdır";
}

/* Register Sayfası İçin Ek Stiller */
.register-form-wrapper {
    max-height: 90vh;
    overflow-y: auto;
    padding-right: 10px;
}

.register-form-wrapper::-webkit-scrollbar {
    width: 6px;
}

.register-form-wrapper::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.register-form-wrapper::-webkit-scrollbar-thumb {
    background: #EA454C;
    border-radius: 3px;
}

.register-form-wrapper::-webkit-scrollbar-thumb:hover {
    background: #d63e45;
}

/* Form Grupları Arası Boşluk */
.register-form-wrapper .form-group {
    margin-bottom: 20px;
}

/* Başarı ve Hata Mesajları */
.alert {
    border-radius: 8px;
    border: none;
    padding: 12px 16px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.alert-success {
    background: #d4edda;
    color: #155724;
}

.alert-danger {
    background: #f8d7da;
    color: #721c24;
}

.alert .btn-close {
    background: none;
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    float: right;
    margin-top: -2px;
}

/* Input Focus States */
.form-control:focus {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(234, 69, 76, 0.15);
}

/* Button Hover Effects */
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0px 8px 20px 0px rgba(233, 68, 75, 0.4);
}

.btn-google:hover {
    transform: translateY(-2px);
    box-shadow: 0px 8px 20px 0px rgba(0, 0, 0, 0.2);
}

/* Mobile Optimizations */
@media (max-width: 768px) {
    .register-form-wrapper {
        max-height: 85vh;
    }
    
    .login-form-section {
        padding: 20px 15px;
    }
    
    .form-group {
        margin-bottom: 18px;
    }
}

@media (max-width: 480px) {
    .login-title {
        font-size: 24px;
        margin-bottom: 8px;
    }
    
    .login-subtitle {
        font-size: 13px;
    }
    
    .form-control {
        height: 38px;
        font-size: 13px;
    }
    
    .btn-primary, .btn-google {
        height: 38px;
        font-size: 13px;
    }
}
