/* Modern Login Page Styles */
.main-content {
    margin: 0;
    padding: 0;
    min-height: 100vh;
    width: 100vw;
    position: relative;
}

.login-page-container {
    display: flex;
    min-height: 100vh;
    width: 100vw;
    background: #f8fafc;
    position: relative;
}

/* Full page layout overrides */
html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
    overflow-x: hidden;
}

/* Language Switcher */
.language-switcher {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 1000;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 8px;
}

.language-switcher a {
    display: inline-block;
    margin: 0 4px;
    padding: 8px 12px;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.2s;
    color: #374151;
}

.language-switcher a:hover {
    background-color: #f1f5f9;
}

.language-switcher .current-language-icon {
    background-color: #3b82f6;
    color: white;
}

/* Left Side - Image Collage */
.image-collage-section {
    flex: 0 0 45%;
/*    background: linear-gradient(135deg, #1e3a8a 0%, #3b82f6 100%);
*/    position: relative;
/*    overflow: hidden;
*/    display: flex;
    align-items: center;
    justify-content: center;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 1rem;
    width: 90%;
    height: 90%;
    max-width: 500px;
    max-height: 600px;
}

.image-frame {
    border-radius: 1rem;
    overflow: hidden;
    position: relative;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
}

.image-frame:hover {
    transform: scale(1.05);
}

.image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.image-frame:hover img {
    transform: scale(1.1);
}

/* Frame positioning */
.frame-1 {
    grid-column: 1 / 2;
    grid-row: 1 / 2;
}

.frame-2 {
    grid-column: 2 / 4;
    grid-row: 1 / 2;
}

.frame-3 {
    grid-column: 1 / 2;
    grid-row: 2 / 3;
}

.frame-4 {
    grid-column: 2 / 4;
    grid-row: 2 / 4;
}

.frame-5 {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
}

.frame-6 {
    grid-column: 3 / 4;
    grid-row: 3 / 4;
}

/* Right Side - Login Form */
.login-form-section {
    flex: 1;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.login-container {
    width: 100%;
    max-width: 450px;
}

/* Back Navigation */
.back-navigation {
    margin-bottom: 2rem;
}

.back-link {
    display: inline-flex;
    align-items: center;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.back-link:hover {
    color: #2563eb;
}

.back-icon {
    margin-left: 0.5rem;
    font-size: 1.2rem;
}

/* Login Header */
.login-header {
    margin-bottom: 2.5rem;
}

.login-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.login-subtitle {
    color: #64748b;
    font-size: 1rem;
    line-height: 1.6;
    margin: 0;
}

/* Modern Login Form */
.modern-login-form {
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: #374151;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-icon {
    position: absolute;
    left: 1rem;
    font-size: 1.1rem;
    color: #9ca3af;
    z-index: 2;
}

.form-input {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 0.75rem;
    font-size: 1rem;
    background: #f9fafb;
    transition: all 0.3s ease;
    color: #374151;
}

.form-input:focus {
    outline: none;
    border-color: #3b82f6;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-input::placeholder {
    color: #9ca3af;
}

.password-toggle {
    position: absolute;
    left: 1rem;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1.1rem;
    color: #9ca3af;
    padding: 0.25rem;
    border-radius: 0.25rem;
    transition: color 0.2s ease;
    z-index: 2;
}

.password-toggle:hover {
    color: #6b7280;
}

/* Form Options */
.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.checkbox-wrapper input[type="checkbox"] {
    display: none;
}

.checkbox-custom {
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #d1d5db;
    border-radius: 0.375rem;
    margin-left: 0.5rem;
    position: relative;
    transition: all 0.2s ease;
    background: #ffffff;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkbox-custom {
    background-color: #3b82f6;
    border-color: #3b82f6;
}

.checkbox-wrapper input[type="checkbox"]:checked + .checkbox-custom::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 0.75rem;
    font-weight: bold;
}

.checkbox-label {
    font-size: 0.9rem;
    color: #374151;
    font-weight: 500;
}

.forgot-password {
    color: #3b82f6;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.forgot-password:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Login Button */
.login-button {
    width: 100%;
    background: #3b82f6;
    color: white;
    border: none;
    padding: 1rem 2rem;
    border-radius: 0.75rem;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3);
}

.login-button:hover {
    background: #2563eb;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.4);
}

.login-button:active {
    transform: translateY(0);
}

.login-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Registration Link */
.registration-link {
    text-align: center;
}

.registration-link p {
    color: #64748b;
    font-size: 0.9rem;
    margin: 0;
}

.register-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.register-link:hover {
    color: #2563eb;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .image-collage-section {
        flex: 0 0 40%;
    }
    
    .image-grid {
        width: 95%;
        height: 95%;
    }
    
    .language-switcher {
        top: 15px;
        left: 15px;
        padding: 6px;
    }
}

@media (max-width: 768px) {
    .login-page-container {
        flex-direction: column;
        width: 100vw;
    }
    
    .image-collage-section {
        flex: 0 0 40vh;
        min-height: 40vh;
    }
    
    .image-grid {
        width: 90%;
        height: 80%;
        max-height: 300px;
    }
    
    .login-form-section {
        padding: 1.5rem;
        flex: 1;
    }
    
    .login-container {
        max-width: 100%;
    }
    
    .form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }
    
    .language-switcher {
        top: 10px;
        left: 10px;
        padding: 4px;
    }
    
    .language-switcher a {
        padding: 6px 8px;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .login-title {
        font-size: 1.5rem;
    }
    
    .login-subtitle {
        font-size: 0.9rem;
    }
    
    .form-input {
        padding: 0.875rem 2.5rem 0.875rem 0.875rem;
    }
    
    .login-button {
        padding: 0.875rem 1.5rem;
    }
    
    .language-switcher {
        top: 8px;
        left: 8px;
        padding: 3px;
    }
    
    .language-switcher a {
        padding: 4px 6px;
        font-size: 0.7rem;
    }
}

/* Animation for form elements */
.form-input,
.login-button {
    animation: fadeInUp 0.6s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Success/Error states */
.form-input.error {
    border-color: #ef4444 !important;
    background-color: #fef2f2 !important;
    box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.1) !important;
}

.form-input.success {
    border-color: #10b981;
    background-color: #f0fdf4;
}

.error-message {
    color: #ef4444;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
    font-weight: 500;
    animation: shake 0.5s ease-in-out;
}

.success-message {
    color: #10b981;
    font-size: 0.875rem;
    margin-top: 0.5rem;
    display: block;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Validation Summary */
.validation-summary {
    margin-bottom: 1.5rem;
    padding: 1rem;
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 0.5rem;
    animation: slideDown 0.3s ease-out;
}

.validation-errors {
    color: #ef4444;
    font-size: 0.875rem;
    margin: 0;
    list-style: none;
    padding: 0;
}

.validation-errors li {
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
}

.validation-errors li:before {
    content: "⚠️";
    margin-left: 0.5rem;
    font-size: 1rem;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
