/* assets/css/login.css - Login Page Styles */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: #f5f7fa;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header with Logo */
.login-page-header {
    background: white;
    padding: 15px 30px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.company-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.company-logo {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.company-info h1 {
    font-size: 20px;
    color: #2c3e50;
    font-weight: 700;
}

.company-info p {
    font-size: 12px;
    color: #7f8c8d;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-link {
    color: #667eea;
    text-decoration: none;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 5px;
    font-weight: 500;
}

.header-link:hover {
    color: #5568d3;
}

/* Main Content */
.login-main {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px 20px;
}

.login-wrapper {
    display: flex;
    max-width: 1100px;
    width: 100%;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Left Side - Image */
.login-image {
    flex: 1;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%),
                url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 800 600"><rect fill="%23667eea" width="800" height="600"/><g fill="%23ffffff" opacity="0.1"><circle cx="200" cy="150" r="80"/><circle cx="600" cy="400" r="100"/><circle cx="350" cy="350" r="60"/><rect x="100" y="400" width="150" height="150" rx="10"/><rect x="550" y="100" width="120" height="120" rx="10"/></g></svg>');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    position: relative;
}

.image-content {
    text-align: center;
    color: white;
    z-index: 1;
}

.image-content .icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.9;
}

.image-content h2 {
    font-size: 32px;
    margin-bottom: 15px;
    font-weight: 700;
}

.image-content p {
    font-size: 16px;
    line-height: 1.6;
    opacity: 0.95;
}

.features-list {
    margin-top: 30px;
    text-align: left;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 14px;
}

.feature-item i {
    font-size: 18px;
    width: 24px;
}

/* Right Side - Login Form */
.login-form-container {
    flex: 0 0 400px;
    padding: 40px 35px;
    display: flex;
    flex-direction: column;
}

.form-header {
    margin-bottom: 25px;
}

.form-header h3 {
    font-size: 24px;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 700;
}

.form-header p {
    font-size: 13px;
    color: #7f8c8d;
}

.alert {
    padding: 10px 12px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.alert-danger {
    background: #fee;
    color: #c33;
    border: 1px solid #fcc;
}

.alert-success {
    background: #efe;
    color: #3c3;
    border: 1px solid #cfc;
}

.alert i {
    font-size: 14px;
}

.form-group {
    margin-bottom: 18px;
}

.form-label {
    display: block;
    font-size: 12px;
    font-weight: 600;
    color: #333;
    margin-bottom: 6px;
}

.form-control {
    width: 100%;
    padding: 10px 12px;
    padding-left: 38px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 13px;
    transition: all 0.3s;
    background: #f8f9fa;
}

.form-control:focus {
    outline: none;
    border-color: #667eea;
    background: white;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-group {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 14px;
    z-index: 1;
}

.form-control:focus + .input-icon {
    color: #667eea;
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 22px;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
    accent-color: #667eea;
}

.checkbox-wrapper label {
    font-size: 12px;
    color: #666;
    cursor: pointer;
    user-select: none;
}

.forgot-link {
    font-size: 12px;
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.forgot-link:hover {
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.btn-login:active {
    transform: translateY(0);
}

.form-footer {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.demo-info {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    font-size: 11px;
    color: #666;
    border: 1px solid #e0e0e0;
}

.demo-info strong {
    color: #667eea;
    display: block;
    margin-bottom: 6px;
}

.demo-info div {
    margin: 3px 0;
}

/* Loading state */
.btn-login.loading {
    pointer-events: none;
    opacity: 0.7;
}

.btn-login.loading::after {
    content: '';
    width: 14px;
    height: 14px;
    border: 2px solid white;
    border-top-color: transparent;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { 
        transform: rotate(360deg); 
    }
}

/* Responsive */
@media (max-width: 968px) {
    .login-image {
        display: none;
    }

    .login-form-container {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .login-page-header {
        padding: 12px 15px;
    }

    .company-logo {
        width: 40px;
        height: 40px;
        font-size: 20px;
    }

    .company-info h1 {
        font-size: 16px;
    }

    .company-info p {
        font-size: 11px;
    }

    .header-right {
        display: none;
    }

    .login-form-container {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .login-main {
        padding: 20px 10px;
    }

    .login-wrapper {
        border-radius: 8px;
    }

    .form-header h3 {
        font-size: 20px;
    }
}