* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: #1a202c;
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Left Section - Login Form */
.login-form-section {
    flex: 0 0 40%;
    background: #f7fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 30px;
    position: relative;
}

.login-form-wrapper {
    width: 100%;
    max-width: 380px;
}

.login-logo {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.login-logo img {
    width: 48px;
    height: 48px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

.login-title {
    font-size: 26px;
    font-weight: 600;
    color: #1a202c;
    margin-bottom: 28px;
    letter-spacing: -0.3px;
}

.form-group {
    margin-bottom: 16px;
}

.form-label {
    display: block;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 6px;
    font-size: 13px;
}

.form-input {
    width: 100%;
    padding: 10px 14px 10px 40px;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s;
    background: #fff;
    position: relative;
}

.form-input:focus {
    outline: none;
    border-color: #3498db;
    box-shadow: 0 0 0 2px rgba(52, 152, 219, 0.1);
}

.form-input.error {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.form-input.error:focus {
    border-color: #dc3545;
    box-shadow: 0 0 0 2px rgba(220, 53, 69, 0.1);
}

.input-wrapper {
    position: relative;
}

.input-icon {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #718096;
    font-size: 14px;
    z-index: 1;
}

.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.remember-me input {
    width: 16px;
    height: 16px;
    margin-right: 6px;
    cursor: pointer;
}

.remember-me label {
    font-size: 13px;
    color: #4a5568;
    cursor: pointer;
    margin: 0;
}

.btn-signin {
    width: 100%;
    padding: 12px;
    background: #1a202c;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    margin-bottom: 20px;
}

.btn-signin:hover {
    background: #2d3748;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.login-links {
    text-align: center;
    font-size: 13px;
    color: #718096;
}

.login-links a {
    color: #3498db;
    text-decoration: none;
    font-weight: 500;
}

.login-links a:hover {
    text-decoration: underline;
}

.login-links-item {
    margin-bottom: 12px;
}

.login-divider {
    display: flex;
    align-items: center;
    margin: 20px 0;
}

.login-divider-line {
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

.login-divider-text {
    padding: 0 12px;
    font-size: 12px;
    color: #a0aec0;
    background: #f7fafc;
}

.social-login {
    margin-top: 0;
    padding: 10px;
    background: #1a202c;
    border-radius: 6px;
    text-align: center;
    color: white;
    font-weight: 500;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.social-login:hover {
    background: #2d3748;
}

.social-login i {
    margin-right: 8px;
}

/* Right Section - Welcome */
.welcome-section {
    flex: 0 0 60%;
    background: linear-gradient(135deg, #1a202c 0%, #2d3748 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
    position: relative;
    overflow: hidden;
}

.welcome-section::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(52, 152, 219, 0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

.welcome-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    width: 100%;
    max-width: 400px;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    padding: 48px 40px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    position: relative;
    z-index: 1;
}

.welcome-pattern {
    display: none;
}

.welcome-logo {
    width: 72px;
    height: 72px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 16px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.welcome-logo:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.brand-name {
    font-size: 32px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.95);
    letter-spacing: -0.5px;
    margin-bottom: 12px;
    line-height: 1.2;
}

.brand-tagline {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 400;
    letter-spacing: 0.2px;
}

.welcome-copyright {
    position: absolute;
    bottom: 24px;
    right: 24px;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.5);
    font-weight: 400;
    letter-spacing: 0.3px;
    z-index: 2;
}

.error-message {
    background: #fee;
    color: #dc3545;
    padding: 12px 14px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 13px;
    border: 1px solid #fcc;
    animation: slideDown 0.3s ease-out;
    display: flex;
    align-items: flex-start;
}

.error-message i {
    margin-right: 8px;
    margin-top: 2px;
    flex-shrink: 0;
}

.error-message-content {
    flex: 1;
}

.error-message-content > div {
    margin-bottom: 4px;
}

.error-message-content > div:last-child {
    margin-bottom: 0;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.field-error {
    color: #dc3545;
    font-size: 13px;
    margin-top: 6px;
    display: flex;
    align-items: center;
    animation: fadeIn 0.2s ease-out;
}

.field-error i {
    margin-right: 6px;
    font-size: 12px;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.success-message {
    background: #d4edda;
    color: #155724;
    padding: 10px 14px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 13px;
    border: 1px solid #c3e6cb;
    animation: slideDown 0.3s ease-out;
    display: flex;
    align-items: center;
}

.success-message i {
    margin-right: 8px;
    flex-shrink: 0;
}

.turnstile-error {
    border: 2px solid #dc3545;
    border-radius: 6px;
    padding: 4px;
    display: inline-block;
}

.turnstile-warning {
    padding: 10px;
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: 6px;
    color: #856404;
    font-size: 13px;
}

.turnstile-warning i {
    margin-right: 6px;
}

/* Responsive */
@media (max-width: 992px) {
    .login-container {
        flex-direction: column;
    }
    
    .login-form-section,
    .welcome-section {
        flex: 1;
    }
    
    .welcome-container {
        max-width: 100%;
    }
}

@media (max-width: 576px) {
    .login-form-section,
    .welcome-section {
        padding: 30px 20px;
    }
    
    .login-title {
        font-size: 28px;
    }
    
    .welcome-title {
        font-size: 28px;
    }
    
    .welcome-container {
        padding: 30px 20px;
    }
    
    .welcome-logo {
        width: 64px;
        height: 64px;
        font-size: 28px;
        margin-bottom: 24px;
    }
    
    .brand-name {
        font-size: 26px;
    }
    
    .brand-tagline {
        font-size: 14px;
    }
    
    .welcome-copyright {
        bottom: 16px;
        right: 16px;
        font-size: 11px;
    }
}

