/* Modern Login Page CSS - Centered Card Design */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: #333;
    overflow-x: hidden;
    background-image: url('../images/try3.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    min-height: 100vh;
}

/* Main Container */
.login-container {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 4rem;
    padding: 2rem;
    height: 100vh;
}

/* Background Overlay */
.login-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

/* Login Card */
.login-panel {
    background: rgb(32 35 39 / 95%);
    backdrop-filter: blur(10px);
    border-radius: 24px;
    padding: 3rem;
    width: 430px;
    max-width: 430px;
    color: white;
    position: relative;
    z-index: 10;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    margin-left: 0;
}

/* Language Selection */
.language-form {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
}

#lang {
    background: rgba(255, 172, 50, 0.1);
    border: 2px solid #ffac32;
    color: #ffac32;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 60px;
}

#lang:hover {
    background: #ffac32;
    color: #2c3e50;
}

/* Brand Section */
.brand-section {
    margin-bottom: 2rem;
    text-align: center;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.logo {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.brand-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ffac32;
    margin: 0;
}

.brand-subtitle {
    color: #94a3b8;
    font-size: 1rem;
    margin: 0;
    font-weight: 400;
    text-align: center;
}

/* Welcome Section */
.welcome-section {
    margin-bottom: 2rem;
    text-align: center;
}

.welcome-title {
    font-size: 2rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 0.5rem;
}

.welcome-subtitle {
    color: #94a3b8;
    font-size: 1rem;
    margin: 0;
}

/* Error Message */
.error-message {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid #ef4444;
    color: #ef4444;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    font-size: 0.875rem;
    text-align: center;
}

/* Login Form */
.login-form {
    margin-bottom: 2rem;
}

.input-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

.input-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #e2e8f0;
    margin-bottom: 0.5rem;
}

.input-group input {
    width: 100%;
    padding: 1rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px !important;
    color: #ffffff;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #ffac32;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(255, 172, 50, 0.1);
}

.input-group input::placeholder {
    color: #94a3b8;
}

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

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    cursor: pointer;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: #ffac32;
}

.password-container input {
    width: 100%;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    font-size: 0.875rem;
}

.remember-me {
    display: flex;
    align-items: center;
    cursor: pointer;
    color: #e2e8f0;
}

.remember-me input {
    width: auto;
    margin-right: 0.5rem;
    accent-color: #ffac32;
}

.forgot-password {
    color: #ffac32;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.forgot-password:hover {
    color: #ff9500;
}

/* Login Button */
.login-btn {
    width: 100%;
    background: #ffac32;
    color: #2c3e50;
    border: none;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: none;
}

.login-btn:hover {
    background: #ff9500;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 172, 50, 0.3);
}

/* Social Login */
.social-login {
    margin-bottom: 2rem;
}

.or-continue {
    text-align: center;
    color: #94a3b8;
    font-size: 0.875rem;
    margin-bottom: 1rem;
    position: relative;
}

.or-continue::before,
.or-continue::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40%;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
}

.or-continue::before {
    left: 0;
}

.or-continue::after {
    right: 0;
}

.social-buttons {
    display: flex;
    gap: 1rem;
}

.social-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    color: #e2e8f0;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.social-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.3);
}

.google-btn:hover {
    border-color: #4285f4;
}

.facebook-btn:hover {
    border-color: #1877f2;
}

/* Sign Up Link */
.signup-link {
    text-align: center;
    font-size: 0.875rem;
    color: #94a3b8;
}

.signup-link a {
    color: #ffac32;
    text-decoration: none;
    font-weight: 500;
}

.signup-link a:hover {
    color: #ff9500;
}

/* Right Panel - Feature Showcase */
.feature-panel {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 10;
    margin-right: 0;
    max-width: 430px;
    min-width: 430px;
}

.feature-content {
    text-align: center;
    color: white;
    max-width: 430px;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    padding: 3rem 2rem;
    position: relative;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.feature-slide {
    margin-bottom: 2.5rem;
    animation: fadeIn 0.5s ease-in-out;
}

.feature-icon {
    background: rgba(255, 172, 50, 0.2);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 172, 50, 0.3);
}

.feature-icon i {
    font-size: 2rem;
    color: #ffac32;
}

.feature-slide h3 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #ffffff;
}

.feature-slide p {
    font-size: 1rem;
    opacity: 0.9;
    line-height: 1.6;
    color: #e2e8f0;
}

/* Feature Indicators */
.feature-indicators {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background: #ffac32;
    transform: scale(1.2);
}

/* App Download Section */
.app-download {
    text-align: center;
}

.app-download p {
    font-size: 0.875rem;
    opacity: 0.8;
    margin-bottom: 1rem;
    font-weight: 500;
    color: #e2e8f0;
}

.download-buttons {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.download-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    padding: 0.75rem 1rem;
        color: white;
    text-decoration: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.download-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
        color: white;
    }

.download-btn img {
    width: 100px;
    height: 32px;
    border-radius: 6px;
}

.download-btn div {
    text-align: left;
}

.download-btn span {
    font-size: 0.875rem;
    font-weight: 500;
}

/* Modal Styles */
.modal-content {
    background-color: #2c3e50 !important;
    color: white !important;
    border-radius: 12px !important;
    border: 1px solid #ffac32 !important;
}

.modal-header {
    border-bottom: 1px solid rgba(255, 172, 50, 0.3) !important;
    padding: 1.5rem !important;
}

.modal-title {
    color: #ffac32 !important;
    font-size: 1.25rem !important;
    font-weight: 600 !important;
}

.modal-body {
    color: #e2e8f0 !important;
    padding: 1.5rem !important;
}

.btn-close {
    filter: invert(1) !important;
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.login-panel {
    animation: fadeIn 0.6s ease-out;
}

.feature-content {
    animation: fadeIn 0.8s ease-out 0.2s both;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .login-container {
        flex-direction: column;
        justify-content: center;
        gap: 2rem;
    }
    
    .login-panel {
        margin-left: 0;
    }
    
    .feature-panel {
        max-width: 80%;
        min-width: auto;
        margin-right: 0;
    }
}

@media (max-width: 768px) {
    .login-container {
        padding: 1rem;
        gap: 1rem;
        flex-direction: column;
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
        align-items: flex-start;
    }
    
    .login-panel {
        padding: 2rem;
        border-radius: 16px;
        max-width: 400px;
    }
    
    .feature-content {
        padding: 1rem;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .download-btn {
        width: 200px;
    }
    
    .language-form {
        top: 1rem;
        right: 1rem;
    }
    
    .feature-panel {
        display: flex;
        max-width: 400px;
        min-width: auto;
        width: 100%;
    }
}

@media (max-width: 480px) {
    .login-container {
        height: auto;
        min-height: 100vh;
        overflow-y: auto;
        align-items: flex-start;
    }
    
    .login-panel {
        padding: 1.5rem;
        max-width: 360px;
    }
    
    .welcome-title {
        font-size: 1.5rem;
    }
    
    .brand-title {
        font-size: 1.5rem;
    }
    
    .social-buttons {
        flex-direction: column;
    }
    
    .language-form {
        position: static;
        text-align: center;
        margin-bottom: 1rem;
    }
    
    .feature-panel {
        display: flex;
        max-width: 360px;
        min-width: auto;
        width: 100%;
    }
}

/* Loading States */
.login-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.login-btn.loading::after {
    content: '';
    width: 16px;
    height: 16px;
    margin-left: 8px;
    border: 2px solid transparent;
    border-top: 2px solid currentColor;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Focus improvements for accessibility */
.login-panel input:focus,
.login-panel button:focus,
.login-panel select:focus {
    outline: 2px solid #ffac32;
    outline-offset: 2px;
}

/* Smooth transitions */
* {
    transition: color 0.3s ease, background-color 0.3s ease, border-color 0.3s ease;
}

.carousel-nav {
    display: flex;
    justify-content: space-between;
        width: 100%;
    margin-bottom: 1.25rem;
}

.nav-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.3);
    color: #ffffff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s ease;
}

.nav-btn:hover {
    background: rgba(255,255,255,0.25);
}