/* Reset ve temel stiller */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #666 0%, #555 100%);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Ana container */
.login-container {
    min-height: 100vh;
    position: relative;
    padding: 0;
}

.row.h-100 {
    height: 100vh;
    margin: 0;
    --bs-gutter-x: 0;
}

/* Sol taraf - Görsel */
.login-visual {
    background: linear-gradient(135deg, #666 0%, #555 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    height: 100vh;
    padding: 0;
}


/* Görsel alan */
.visual-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.main-visual-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Brand Section */
.brand-section {
    position: absolute;
    top: 40px;
    left: 40px;
    z-index: 10;
    animation: slideInLeft 1s ease-out;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.logo-icon {
    font-size: 2.5rem;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.brand-name {
    font-size: 2.5rem;
    font-weight: 700;
    color: white;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    letter-spacing: 2px;
}

.brand-tagline {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
    font-weight: 300;
}

/* Ana Overlay */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(100, 100, 100, 0.6) 0%, rgba(80, 80, 80, 0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.overlay-content {
    text-align: center;
    color: white;
    z-index: 2;
    max-width: 500px;
    padding: 0 40px;
}

.welcome-card {
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 40px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
    animation: slideInUp 1s ease-out 0.3s both;
}

.card-icon {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    border: 2px solid rgba(255, 255, 255, 0.4);
}

.card-icon i {
    font-size: 2.5rem;
    color: white;
}

.welcome-card h3 {
    font-size: 2.2rem;
    font-weight: 600;
    margin-bottom: 15px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.welcome-card p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.6;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1rem;
    opacity: 0.9;
}

.feature-item i {
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: white;
}

/* Dekoratif Elementler */
.decorative-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}

.deco-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    animation: float 6s ease-in-out infinite;
}

.deco-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    right: 15%;
    animation-delay: 0s;
}

.deco-2 {
    width: 60px;
    height: 60px;
    bottom: 25%;
    right: 25%;
    animation-delay: 2s;
}

.deco-square {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    animation: float 8s ease-in-out infinite;
}

.deco-3 {
    width: 40px;
    height: 40px;
    top: 60%;
    right: 10%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(180deg);
    }
}

/* Sağ taraf - Form */
.login-form-section {
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
    height: 100vh;
    margin: 0;
}

.form-container {
    width: 100%;
    max-width: 450px;
    animation: slideInRight 1s ease-out;
}

.form-header {
    text-align: center;
    margin-bottom: 30px;
}

.form-header h2 {
    font-size: 2.5rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.form-header p {
    color: #666;
    font-size: 1rem;
}

/* Form stilleri */
.login-form {
    width: 100%;
}

.login-form .row {
    margin: 0 -10px;
}

.login-form .col-md-6 {
    padding: 0 10px;
}

.form-group {
    margin-bottom: 20px;
}

.input-container {
    position: relative;
    display: flex;
    align-items: center;
}

.form-group.focused .input-container input {
    border-color: #666;
    background: white;
    box-shadow: 0 0 0 3px rgba(100, 100, 100, 0.1);
}

.form-group.focused .input-container .input-icon {
    color: #666;
}

.input-icon {
    position: absolute;
    left: 15px;
    color: #999;
    font-size: 1.1rem;
    z-index: 2;
    transition: color 0.3s ease;
}

.input-container input {
    width: 100%;
    padding: 12px 12px 12px 45px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    font-size: 0.95rem;
    font-family: 'Poppins', sans-serif;
    background: #f8f9fa;
    transition: all 0.3s ease;
    outline: none;
}

.input-container input:focus {
    border-color: #666;
    background: white;
    box-shadow: 0 0 0 3px rgba(113, 127, 224, 0.1);
}

.input-container input:focus + .input-icon {
    color: #666;
}

.input-focus-line {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: #666;
    transition: width 0.3s ease;
}

.input-container input:focus ~ .input-focus-line {
    width: 100%;
}

.password-toggle {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #666;
}

/* Form seçenekleri */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #666;
}

.remember-me input {
    display: none;
}

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #e1e5e9;
    border-radius: 4px;
    margin-right: 8px;
    position: relative;
    transition: all 0.3s ease;
}

.remember-me input:checked + .checkmark {
    background: #666;
    border-color: #666;
}

.remember-me input:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

.forgot-password {
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #555;
}

/* Giriş butonu */
.login-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #666 0%, #555 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
    margin-bottom: 25px;
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(100, 100, 100, 0.3);
}

.login-btn:active {
    transform: translateY(0);
}

.btn-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: none;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.login-btn.loading .btn-text {
    opacity: 0;
}

.login-btn.loading .btn-loader {
    display: block;
}

/* Ayırıcı */
.divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: #e1e5e9;
}

.divider span {
    background: white;
    padding: 0 20px;
    color: #999;
    font-size: 0.9rem;
}

/* Sosyal medya girişi */
.social-login {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 25px;
}

.social-btn {
    width: 100%;
    padding: 12px;
    border: 2px solid #e1e5e9;
    border-radius: 10px;
    background: white;
    color: #666;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.3s ease;
}

.social-btn:hover {
    border-color: #666;
    color: #666;
    transform: translateY(-1px);
}

.google-btn:hover {
    border-color: #db4437;
    color: #db4437;
}

.facebook-btn:hover {
    border-color: #3b5998;
    color: #3b5998;
}

/* Kayıt linki */
.signup-link {
    text-align: center;
}

.signup-link p {
    color: #666;
    font-size: 0.9rem;
}

.signup-link a {
    color: #666;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.signup-link a:hover {
    color: #555;
}

/* 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);
    }
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive tasarım */
@media (max-width: 768px) {
    .row.h-100 {
        height: auto;
    }
    
    .login-visual {
        height: 50vh;
        min-height: 400px;
    }
    
    .login-form-section {
        height: auto;
        min-height: 50vh;
    }
    
    .login-form .col-md-6 {
        padding: 0 5px;
    }
    
    .login-form .row {
        margin: 0 -5px;
    }
    
    
    .brand-section {
        top: 20px;
        left: 20px;
    }
    
    .logo-icon {
        font-size: 2rem;
    }
    
    .brand-name {
        font-size: 2rem;
    }
    
    .brand-tagline {
        font-size: 0.9rem;
    }
    
    .welcome-card {
        padding: 25px;
        margin: 0 20px;
    }
    
    .card-icon {
        width: 60px;
        height: 60px;
        margin-bottom: 20px;
    }
    
    .card-icon i {
        font-size: 2rem;
    }
    
    .welcome-card h3 {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }
    
    .welcome-card p {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .feature-list {
        gap: 12px;
    }
    
    .feature-item {
        font-size: 0.9rem;
    }
    
    .deco-circle,
    .deco-square {
        display: none;
    }
    
    .login-form-section {
        padding: 20px;
    }
    
    .form-header h2 {
        font-size: 2rem;
    }
    
    .form-options {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .login-visual {
        min-height: 30vh;
    }
    
    .welcome-text h1 {
        font-size: 1.5rem;
    }
    
    .form-header h2 {
        font-size: 1.8rem;
    }
    
    .input-container input {
        padding: 12px 12px 12px 45px;
    }
    
    .login-btn {
        padding: 12px;
    }
}

/* Hata ve başarı mesajları */
.alert {
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    animation: slideInDown 0.5s ease-out;
}

.alert-error {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.alert-success {
    background: #efe;
    color: #363;
    border: 1px solid #cfc;
}

@keyframes slideInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
