﻿
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-container {
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    width: 100%;
    max-width: 900px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 600px;
}

.login-left {
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

    .login-left::before {
        content: '';
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E") repeat;
        opacity: 0.1;
        animation: backgroundMove 20s linear infinite;
    }

@keyframes backgroundMove {
    0% {
        transform: translateX(0) translateY(0);
    }

    100% {
        transform: translateX(-60px) translateY(-60px);
    }
}

.brand-logo {
    display: flex;
    align-items: center;
    margin-bottom: 2rem;
    z-index: 1;
}

.logo-icon {
    width: 60px;
    height: 60px;
    margin-right: 15px;
}

.logo-text {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.welcome-text {
    color: white;
    text-align: center;
    z-index: 1;
}

    .welcome-text h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    }

    .welcome-text p {
        font-size: 1.1rem;
        opacity: 0.9;
        line-height: 1.6;
    }

.login-right {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
}

.login-header {
    text-align: center;
    margin-bottom: 2rem;
}

    .login-header h3 {
        color: #2c3e50;
        font-size: 1.8rem;
        margin-bottom: 0.5rem;
        font-weight: 600;
    }

    .login-header p {
        color: #7f8c8d;
        font-size: 1rem;
    }

.form-group {
    margin-bottom: 1.5rem;
    position: relative;
}

    .form-group label {
        display: block;
        color: #2c3e50;
        font-weight: 500;
        margin-bottom: 0.5rem;
        font-size: 0.95rem;
    }

.form-control {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #ecf0f1;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f8f9fa;
}

    .form-control:focus {
        outline: none;
        border-color: #f39c12;
        background: white;
        box-shadow: 0 0 0 3px rgba(243, 156, 18, 0.1);
    }

.input-icon {
    position: absolute;
    left: 1rem;
    top: 2.2rem;
    color: #bdc3c7;
    font-size: 1.1rem;
    transition: color 0.3s ease;
}

.form-control:focus + .input-icon {
    color: #f39c12;
}

.btn-login {
    width: 100%;
    background: linear-gradient(135deg, #f39c12 0%, #e67e22 100%);
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 12px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

    .btn-login::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
        transition: left 0.5s;
    }

    .btn-login:hover::before {
        left: 100%;
    }

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(243, 156, 18, 0.3);
    }

    .btn-login:active {
        transform: translateY(0);
    }

.forgot-password {
    text-align: center;
    margin-top: 1.5rem;
}

    .forgot-password a {
        color: #f39c12;
        text-decoration: none;
        font-size: 0.95rem;
        transition: color 0.3s ease;
    }

        .forgot-password a:hover {
            color: #e67e22;
            text-decoration: underline;
        }

.footer-text {
    text-align: center;
    margin-top: 2rem;
    color: #95a5a6;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .login-container {
        grid-template-columns: 1fr;
        margin: 1rem;
        max-width: 400px;
    }

    .login-left {
        padding: 2rem;
        min-height: 200px;
    }

        .login-left h2 {
            font-size: 1.5rem;
        }

    .login-right {
        padding: 2rem;
    }

    .logo-text {
        font-size: 1.5rem;
    }

    .logo-icon {
        width: 40px;
        height: 40px;
    }
}

.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.error-message {
    color: #e74c3c;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    display: none;
}

/* Modern Toast Alert Sistemi */
.toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 9999;
    max-width: 350px;
    pointer-events: none;
}

.toast {
    background: white;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.12);
    margin-bottom: 15px;
    padding: 0;
    overflow: hidden;
    transform: translateX(400px) scale(0.8);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: auto;
    border: 1px solid rgba(0, 0, 0, 0.08);
    backdrop-filter: blur(20px);
}

    .toast.show {
        transform: translateX(0) scale(1);
        opacity: 1;
    }

    .toast.hide {
        transform: translateX(400px) scale(0.8);
        opacity: 0;
    }

.toast-header {
    padding: 16px 20px 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.toast-icon-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
}

.toast-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: bold;
}

.toast-success .toast-icon {
    background: linear-gradient(135deg, #00d4aa, #00b894);
    color: white;
}

.toast-error .toast-icon {
    background: linear-gradient(135deg, #fd79a8, #e84393);
    color: white;
}

.toast-warning .toast-icon {
    background: linear-gradient(135deg, #fdcb6e, #e17055);
    color: white;
}

.toast-info .toast-icon {
    background: linear-gradient(135deg, #74b9ff, #0984e3);
    color: white;
}

.toast-title {
    font-weight: 600;
    font-size: 14px;
    color: #2d3436;
}

.toast-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #636e72;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

    .toast-close:hover {
        background: rgba(99, 110, 114, 0.1);
        color: #2d3436;
    }

.toast-body {
    padding: 8px 20px 16px 20px;
    color: #636e72;
    font-size: 13px;
    line-height: 1.5;
}

.toast-progress {
    height: 3px;
    background: rgba(0, 0, 0, 0.05);
    position: relative;
    overflow: hidden;
}

.toast-progress-bar {
    height: 100%;
    width: 100%;
    transform-origin: left;
    transition: transform linear;
}

.toast-success .toast-progress-bar {
    background: linear-gradient(90deg, #00d4aa, #00b894);
}

.toast-error .toast-progress-bar {
    background: linear-gradient(90deg, #fd79a8, #e84393);
}

.toast-warning .toast-progress-bar {
    background: linear-gradient(90deg, #fdcb6e, #e17055);
}

.toast-info .toast-progress-bar {
    background: linear-gradient(90deg, #74b9ff, #0984e3);
}

@media (max-width: 768px) {
    .toast-container {
        bottom: 10px;
        right: 10px;
        left: 10px;
        max-width: none;
    }

    .toast {
        transform: translateY(100px) scale(0.9);
    }

        .toast.show {
            transform: translateY(0) scale(1);
        }

        .toast.hide {
            transform: translateY(100px) scale(0.9);
        }
}
