/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow: hidden;
    background: linear-gradient(135deg, #22c55e 0%, #eab308 100%);
}

/* Main Container */
.login-container {
    display: flex;
    height: 100vh;
    width: 100%;
    background: linear-gradient(135deg, #22c55e 0%, #eab308 100%);
    position: relative;
    overflow: hidden;
}



/* Left Column - Login Form */
.login-form-section {
    flex: 1;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 2;
    border-radius: 0;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    margin: 0 0 0 0;
}

.form-container {
    width: 100%;
    max-width: 400px;
    animation: slideInLeft 1s ease-out;
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Logo Styles */
.logo-container {
    text-align: center;
    margin-bottom: 2rem;
}

.logo {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: contain;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    animation: logoFloat 3s ease-in-out infinite;
}

.logo:hover {
    transform: scale(1.1);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

.company-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2d3748;
    margin-top: 1rem;
    text-align: center;
    line-height: 1.4;
    background: linear-gradient(135deg, #22c55e 0%, #eab308 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
}

/* Sign In Section */
.signin-section {
    margin-bottom: 2rem;
}

.signin-title {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, #22c55e 0%, #eab308 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
    animation: titleGlow 2s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from { filter: drop-shadow(0 0 5px rgba(34, 197, 94, 0.3)); }
    to { filter: drop-shadow(0 0 15px rgba(34, 197, 94, 0.6)); }
}

.signin-subtitle {
    color: #718096;
    font-size: 0.95rem;
}

/* Message Container Styles */
.message-container {
    margin-bottom: 1.5rem;
    min-height: 0;
    transition: all 0.3s ease;
}

.message {
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 12px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: messageSlideIn 0.3s ease-out;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border-left: 4px solid;
}

.message.success {
    background-color: #f0fdf4;
    color: #166534;
    border-left-color: #22c55e;
}

.message.error {
    background-color: #fef2f2;
    color: #dc2626;
    border-left-color: #ef4444;
}

.message.warning {
    background-color: #fffbeb;
    color: #d97706;
    border-left-color: #f59e0b;
}

.message.info {
    background-color: #eff6ff;
    color: #1d4ed8;
    border-left-color: #3b82f6;
}

.message-icon {
    font-size: 16px;
    flex-shrink: 0;
}

.message-text {
    flex: 1;
}

.message-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    padding: 4px;
    border-radius: 4px;
    opacity: 0.7;
    transition: opacity 0.2s, background-color 0.2s;
    flex-shrink: 0;
}

.message-close:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.1);
}

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

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

.message.fade-out {
    animation: messageFadeOut 0.3s ease-in forwards;
}

/* Form Styles */
.login-form {
    width: 100%;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block !important;
    font-weight: 500;
    color: #2d3748;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.form-input {
    width: 100%;
    padding: 1rem 1.25rem;
    border: 2px solid #e2e8f0;
    border-radius: 1rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.form-input:hover {
    border-color: #22c55e;
    box-shadow: 0 8px 25px rgba(34, 197, 94, 0.15);
    transform: translateY(-2px);
}

.form-input:focus {
    outline: none;
    border-color: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.2), 0 10px 30px rgba(34, 197, 94, 0.2);
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 1);
}

.form-input::placeholder {
    color: #a0aec0;
}

/* Password Container */
.password-container {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 0.75rem;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    padding: 0.75rem;
    color: #22c55e;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    z-index: 10;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.password-toggle:hover {
    background: rgba(255, 255, 255, 0.9);
    color: #22c55e;
    transform: translateY(-50%);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.password-toggle:focus {
    outline: none;
    color: #22c55e;
}

/* Checkbox Styles */
.checkbox-container {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9rem;
    color: #4a5568;
    -webkit-user-select: none;
    user-select: none;
}

.checkbox-container input[type="checkbox"] {
    display: none;
}

.checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid #e2e8f0;
    border-radius: 6px;
    margin-right: 0.75rem;
    position: relative;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
    background: linear-gradient(135deg, #22c55e 0%, #eab308 100%);
    border-color: #22c55e;
    transform: scale(1.1);
    box-shadow: 0 5px 15px rgba(34, 197, 94, 0.3);
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 12px;
    font-weight: bold;
}

/* Login Button */
.login-btn {
    width: 100%;
    background: linear-gradient(135deg, #22c55e 0%, #eab308 100%);
    color: white;
    border: none;
    padding: 1.25rem 2rem;
    border-radius: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.3);
    position: relative;
    overflow: hidden;
}

.login-btn::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 ease;
}

.login-btn:hover::before {
    left: 100%;
}

.login-btn:hover {
    transform: translateY(-5px) scale(1.02);
    box-shadow: 0 20px 40px rgba(34, 197, 94, 0.4);
}

.login-btn:active {
    transform: translateY(-2px) scale(0.98);
}

.btn-icon {
    font-size: 1.1rem;
    font-weight: bold;
}

/* Right Column - Background */
.background-section {
    flex: 1.5;
    background: url('../images/bg-auth.jpg') right center/cover no-repeat;
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    border-radius: 0;
    margin: 0 0 0 0;
    overflow: hidden;
}



@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(1deg); }
}

.background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.welcome-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 1rem 2rem 3rem 2rem;
    max-width: 600px;
    animation: slideInRight 1s ease-out 0.5s both;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.welcome-title {
    font-size: 2.8rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    background: linear-gradient(135deg, #ffffff 0%, #f0f0f0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: titlePulse 3s ease-in-out infinite;
}

@keyframes titlePulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.welcome-subtitle {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    text-align: center;
    font-weight: 500;
    text-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    animation: subtitleFloat 4s ease-in-out infinite;
    line-height: 1.6;
}

@keyframes subtitleFloat {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-5px); }
}

.arrow-icon {
    font-size: 1.1rem;
    font-weight: bold;
}

.powered-by {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    text-align: center;
    font-size: 0.85rem;
    opacity: 0.9;
    background: rgba(255, 255, 255, 0.15);
    padding: 1rem 1.5rem;
    border-radius: 1rem;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    animation: poweredByGlow 5s ease-in-out infinite;
    margin-top: 1.5rem;
}

@keyframes poweredByGlow {
    0%, 100% { box-shadow: 0 5px 15px rgba(255, 255, 255, 0.1); }
    50% { box-shadow: 0 10px 30px rgba(255, 255, 255, 0.2); }
}

.powered-by p {
    margin-bottom: 0.25rem;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .login-container {
        flex-direction: column;
        padding: 1rem;
    }
    
    .login-form-section {
        flex: none;
        height: auto;
        min-height: 60vh;
        padding: 2rem;
        margin: 1rem;
        border-radius: 2rem;
    }
    
    .background-section {
        display: none;
    }
    
    .welcome-title {
        font-size: 2.5rem;
    }
    
    .welcome-subtitle {
        font-size: 1.1rem;
    }
    
    .powered-by {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: 1rem;
        width: 90%;
    }
}

@media (max-width: 768px) {
    .login-container {
        padding: 0.5rem;
    }
    
    .login-form-section {
        height: auto;
        min-height: 70vh;
        padding: 1.5rem;
        margin: 0.5rem;
    }
    
    .background-section {
        display: none;
    }
    
    .form-container {
        max-width: 100%;
    }
    
    .welcome-title {
        font-size: 2rem;
    }
    
    .welcome-subtitle {
        font-size: 1rem;
    }
    
    .signin-title {
        font-size: 2rem;
    }
    
    .logo {
        width: 80px;
        height: 80px;
    }
    
    .company-name {
        font-size: 1rem;
    }
    
    .form-input {
        padding: 0.875rem 1rem;
        font-size: 0.95rem;
    }
    
    .login-btn {
        padding: 1rem 1.5rem;
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .login-container {
        padding: 0.25rem;
    }
    
    .login-form-section {
        height: auto;
        min-height: 75vh;
        padding: 1rem;
        margin: 0.25rem;
    }
    
    .background-section {
        display: none;
    }
    
    .welcome-content {
        padding: 1rem;
    }
    
    .welcome-title {
        font-size: 1.5rem;
    }
    
    .welcome-subtitle {
        font-size: 0.9rem;
    }
    
    .powered-by {
        font-size: 0.8rem;
        padding: 1rem 1.5rem;
    }
    
    .signin-title {
        font-size: 1.75rem;
    }
    
    .logo {
        width: 70px;
        height: 70px;
    }
    
    .company-name {
        font-size: 0.9rem;
    }
    
    .form-input {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .login-btn {
        padding: 0.875rem 1.25rem;
        font-size: 0.95rem;
    }
    
    .password-toggle {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* Animation for form elements */
.form-input,
.login-btn {
    animation: fadeInUp 0.6s ease-out;
}



@keyframes particleFloat {
    0% { transform: translateY(0px); }
    100% { transform: translateY(-100px); }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Form validation styles */
.form-group.error .form-input {
    border-color: #e53e3e;
    box-shadow: 0 0 0 3px rgba(229, 62, 62, 0.1);
}

.form-group.success .form-input {
    border-color: #38a169;
    box-shadow: 0 0 0 3px rgba(56, 161, 105, 0.1);
}

.error-message {
    color: #e53e3e;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: slideIn 0.3s ease;
}

.success-message {
    color: #38a169;
    font-size: 0.85rem;
    margin-top: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    animation: slideIn 0.3s ease;
}

/* Shake animation for errors */
.form-input.shake {
    animation: shake 0.5s ease-in-out;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

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

/* Notification styles */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4299e1;
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 0.5rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    max-width: 400px;
    font-size: 0.9rem;
}

.notification.show {
    transform: translateX(0);
}

.notification.notification-error {
    background: #e53e3e;
}

.notification.notification-success {
    background: #38a169;
}

.notification-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.notification-close {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    padding: 0.25rem;
    margin-left: auto;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}

.notification-close:hover {
    opacity: 1;
}

/* Loading state for button */
.login-btn.loading {
    pointer-events: none;
    opacity: 0.7;
}

.login-btn.loading i {
    animation: spin 1s linear infinite;
}

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

/* Focus effects */
.form-group.focused .form-input {
    border-color: #22c55e;
    box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.1);
}

/* Floating label effect */
.form-group.floating .form-label {
    transform: translateY(-1.5rem) scale(0.85);
    color: #22c55e;
}

/* Remove floating label effect for email field */
.form-group:has(#email) .form-label {
    transform: none !important;
    color: #2d3748 !important;
}
