﻿* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #4A90E2 0%, #2C5AA0 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-container {
    display: flex;
    max-width: 1000px;
    width: 100%;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.login-left {
    flex: 1;
    background: linear-gradient(135deg, #4A90E2 0%, #2C5AA0 100%);
    padding: 60px 40px;
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.logo-section {
    margin-bottom: 40px;
}

.logo {
    height: 120px;
    padding: 10px 40px;
    background: rgba(255, 255, 255);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
}


.company-name {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.company-tagline {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 300;
}

.welcome-text {
    margin-top: 40px;
}

    .welcome-text h2 {
        font-size: 1.8rem;
        margin-bottom: 15px;
        font-weight: 600;
    }

    .welcome-text p {
        font-size: 1rem;
        line-height: 1.6;
        color: rgba(255, 255, 255, 0.9);
    }

.login-right {
    flex: 1;
    padding: 60px 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.login-header {
    margin-bottom: 40px;
}

    .login-header h1 {
        font-size: 2rem;
        color: #2C5AA0;
        margin-bottom: 10px;
        font-weight: 700;
    }

    .login-header p {
        color: #6c757d;
        font-size: 0.95rem;
    }

.form-group {
    margin-bottom: 25px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-weight: 600;
    font-size: 0.9rem;
}

.input-group-custom {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #6c757d;
    font-size: 1.1rem;
}

.form-control-custom {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 1rem;
    transition: all 0.3s;
    background: #f8f9fa;
}

    .form-control-custom:focus {
        outline: none;
        border-color: #4A90E2;
        background: #fff;
        box-shadow: 0 0 0 4px rgba(74, 144, 226, 0.1);
    }

.password-toggle {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #6c757d;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 5px;
}

    .password-toggle:hover {
        color: #4A90E2;
    }

.remember-forgot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    font-size: 0.9rem;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 8px;
}

    .remember-me input[type="checkbox"] {
        width: 18px;
        height: 18px;
        cursor: pointer;
    }

.forgot-password {
    color: #4A90E2;
    text-decoration: none;
    font-weight: 500;
}

    .forgot-password:hover {
        text-decoration: underline;
    }

.btn-login {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #4A90E2 0%, #2C5AA0 100%);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(74, 144, 226, 0.3);
}

    .btn-login:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 20px rgba(74, 144, 226, 0.4);
    }

    .btn-login:active {
        transform: translateY(0);
    }

    .btn-login:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

.error-message {
    background: #fee;
    border-left: 4px solid #dc3545;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    display: none;
}

    .error-message.show {
        display: block;
        animation: slideDown 0.3s ease;
    }

    .error-message i {
        color: #dc3545;
        margin-right: 8px;
    }

    .error-message span {
        color: #721c24;
        font-size: 0.9rem;
    }

.loading-spinner {
    display: none;
    margin-left: 10px;
}

    .loading-spinner i {
        animation: spin 1s linear infinite;
    }

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .login-container {
        flex-direction: column;
    }

    .login-left {
        padding: 40px 30px;
    }

    .login-right {
        padding: 40px 30px;
    }

    .company-name {
        font-size: 1.5rem;
    }

    .welcome-text h2 {
        font-size: 1.3rem;
    }
}
