/* ============================================
   Form Styles - Material Design Outline
   File: assets/css/forms.css
   ============================================ */

/* Base Reset */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* Body & Background */
body {
    font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0088dd 0%, #091c39 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Wrapper Container */
.form-wrapper {
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.25);
    max-width: 900px;
    width: 100%;
    display: flex;
    overflow: hidden;
}

/* Left Decorative Panel */
.form-left {
    flex: 1;
    background: linear-gradient(135deg, #0088dd 0%, #091c39 100%);
    padding: 50px 40px;
    display: flex;
    flex-direction: column;
    justify-content:flex-start;
    color: white;
    position: relative;
    overflow: hidden;
}

.form-left::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); opacity: 0.5; }
    50% { transform: scale(1.1); opacity: 0.8; }
}

.form-left h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
	text-transform: uppercase;
}

.form-left p {
    font-size: 15px;
    line-height: 1.7;
    opacity: 0.95;
    position: relative;
    z-index: 1;
}

.form-left .features {
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.form-left .feature {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 14px;
}

.form-left .feature-icon {
    width: 24px;
    height: 24px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

/* Login Button in Left Panel */
.form-left .login-btn {
    margin-top: 40px;
    display: inline-block;
    padding: 14px 28px;
    background: rgba(255,255,255,0.2);
    color: white;
    text-decoration: none;
    border-radius: 10px;
    font-weight: 500;
    transition: all 0.3s;
    position: relative;
    z-index: 1;
    border: 2px solid rgba(255,255,255,0.3);
}

.form-left .login-btn:hover {
    background: rgba(255,255,255,0.3);
    transform: translateY(-2px);
}

/* Right Form Panel */
.form-right {
    flex: 1.3;
    padding: 50px 40px;
}

.form-title {
    font-size: 26px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
	text-transform: uppercase;
}

.form-subtitle {
    color: #666;
    font-size: 14px;
    margin-bottom: 35px;
}

/* Material Design Outline Input */
.form-group {
    position: relative;
    margin-bottom: 28px;
}

.form-row {
    display: flex;
    gap: 20px;
}

.form-row .form-group {
    flex: 1;
}

.form-input {
    width: 100%;
    padding: 12px 14px 10px;
    font-size: 17px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: transparent;
    transition: border-color 0.3s, box-shadow 0.3s;
    color: #333;
}

.form-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.15);
}

.form-input.error {
    border-color: #e74c3c;
}

.form-input.error:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15);
}

.form-input:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

/* Floating Label */
.form-label {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    padding: 0 6px;
    color: #888;
    font-size: 15px;
    pointer-events: none;
    transition: all 0.25s ease;
    z-index: 2;
}

.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label,
.form-input.has-value + .form-label,
select.form-input + .form-label {
    top: 0;
    font-size: 12px;
    color: #667eea;
    font-weight: 500;
}

.form-input.error + .form-label {
    color: #e74c3c;
}

/* Select Styling */
select.form-input {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    cursor: pointer;
}

select.form-input option {
    color: #333;
}

/* Error Message */
.error-text {
    color: #e74c3c;
    font-size: 12px;
    margin-top: 6px;
    display: block;
    animation: slideIn 0.2s ease;
}

@keyframes slideIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Password Requirements */
.password-requirements {
    font-size: 12px;
    color: #888;
    margin-top: 6px;
    padding-left: 4px;
}

/* Button */
.btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, #0088dd 0%, #091c39 100%);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    margin-top: 10px;
	font-family: 'Montserrat', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.4);
}

.btn:active {
    transform: translateY(0);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Alerts */
.alert {
    padding: 16px 20px;
    border-radius: 10px;
    margin-bottom: 25px;
    font-size: 14px;
    line-height: 1.5;
}

.alert-success {
    background: #d4edda;
    color: #155724;
    border-left: 4px solid #28a745;
}

.alert-error {
    background: #f8d7da;
    color: #721c24;
    border-left: 4px solid #e74c3c;
}

/* Success Animation */
.success-animation {
    text-align: center;
    padding: 20px 0;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #28a745, #20c997);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 36px;
    color: white;
    animation: bounceIn 0.5s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Responsive */
@media (max-width: 768px) {
    .form-wrapper {
        flex-direction: column;
        max-width: 480px;
    }
    
    .form-left {
        padding: 40px 30px;
        text-align: center;
    }
    
    .form-left .feature {
        justify-content: center;
    }
    
    .form-right {
        padding: 40px 30px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
}
/* Special handling for password fields */
.form-input[type="password"] + .form-label {
    pointer-events: none;
}

/* Ensure labels float up for password fields when focused or has-value */
.form-input[type="password"]:focus + .form-label,
.form-input[type="password"].has-value + .form-label {
    top: 0;
    font-size: 12px;
    color: #667eea;
    font-weight: 500;
}

/* Fix for password field label positioning */
.form-group {
    position: relative;
    margin-bottom: 24px;
}

.form-label {
    position: absolute;
    left: 14px;
	top: 23px;
    transform: translateY(-50%);
    background: #fff;
    padding: 0 6px;
    color: #888;
    font-size: 15px;
    pointer-events: none;
    transition: all 0.25s ease;
    z-index: 2;
}

/* Float label when input is focused, has content, or is any type with value */
.form-input:focus + .form-label,
.form-input:not(:placeholder-shown) + .form-label,
.form-input.has-value + .form-label,
select.form-input + .form-label,
input[type="date"].form-input.has-value + .form-label {
    top: 0;
    font-size: 12px;
    color: #667eea;
    font-weight: 500;
}

input.form-input:-webkit-autofill,
input.form-input:-webkit-autofill:hover,
input.form-input:-webkit-autofill:focus,
input.form-input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 1000px #FFFFFF inset !important;
  transition: background-color 5000s ease-in-out 0s;
}

/* Modal Styles */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}
.modal-overlay.active {
    display: flex;
}
.modal-content {
    background: #fff;
    padding: 40px;
    border-radius: 8px;
    width: 100%;
    max-width: 500px;
    position: relative;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}
.close-modal {
    position: absolute;
    top: 15px; right: 20px;
    font-size: 24px;
    cursor: pointer;
    color: #aaa;
}
.close-modal:hover { color: #333; }

/* Header Nav Adjustments */
.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
}
.nav-links a {
    margin-right: 20px;
    text-decoration: none;
    color: #333;
    font-weight: 500;
}
.lang-switcher span {
    cursor: pointer;
    margin-left: 10px;
}
.login-btn-header {
    margin-left: 20px;
    padding: 8px 16px;
    background-color: #0088dd;
    color: white;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    cursor: pointer;
    border: none;
}
.login-btn-header:hover {
    background-color: #0066aa;
}