/* Authentication Pages Styles - Modern Design */

* {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Auth Content */
.auth-content {
    padding: 0;
    min-height: calc(100vh - 80px);
    background-color: #ffffff;
}

.auth-layout {
    display: flex;
    min-height: calc(100vh - 80px);
    width: 100%;
}

.auth-form {
    width: 400px;
    padding: 40px 20px;
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 30px;
    margin-right: 10px;
}

.auth-video {
    flex: 1;
    position: relative;
    overflow: hidden;
    margin-right: 10px;
}

.auth-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.video-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.video-content {
    text-align: center;
    color: white;
    padding: 40px;
}

.video-content h2 {
    font-size: 48px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.video-content p {
    font-size: 20px;
    font-weight: 400;
    opacity: 0.9;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
}

/* Auth Title */
.auth-title {
    font-size: 24px;
    font-weight: 700;
    color: #000;
    margin-bottom: 30px;
    text-align: center;
    font-family: 'Inter', sans-serif;
}

/* Auth Form */
.auth-form {
    width: 100%;
    max-width: 400px;
}

.form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Form Row for side by side inputs */
.form-row {
    display: flex;
    gap: 15px;
}

.form-row .form-group {
    flex: 1;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 14px;
    font-weight: 400;
    color: #000;
    margin-bottom: 5px;
    font-family: 'Inter', sans-serif;
}

/* Input Styles */
.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    background: #fff;
    font-size: 16px;
    color: #000;
    border-radius: 4px;
    transition: border-color 0.2s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    box-sizing: border-box;
}

.form-group input:focus {
    outline: none;
    border-color: #000;
}

.form-group input::placeholder {
    color: #999;
}

/* Password Input */
.password-input {
    position: relative;
    display: flex;
    align-items: center;
}

.password-input input {
    width: 100%;
    padding-right: 45px;
}

.password-toggle {
    position: absolute;
    right: 15px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    padding: 5px;
    font-size: 16px;
    transition: color 0.2s ease;
}

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

/* Checkbox Groups */
.checkbox-group {
    margin: 12px 0;
}

.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    cursor: pointer;
    font-size: 13px;
    line-height: 1.5;
    color: #000;
}

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

.checkmark {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 3px;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-top: 2px;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
    background-color: #000;
    border-color: #000;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 5px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-text {
    flex: 1;
}

.checkbox-text strong {
    font-weight: 600;
}

/* Links in checkbox text */
.link {
    color: #ff0000;
    text-decoration: underline;
    font-weight: 400;
}

.link:hover {
    color: #cc0000;
}

/* Auth Buttons */
.auth-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 4px;
    margin-top: 6px;
    font-family: 'Inter', sans-serif;
    border: 1px solid transparent;
}

.primary-btn {
    background-color: #000;
    color: #fff;
    border: 1px solid #000;
}

.primary-btn:hover {
    background-color: #333;
    border-color: #333;
}

.secondary-btn {
    background-color: #fff;
    color: #000;
    border: 1px solid #000;
}

.secondary-btn:hover {
    background-color: #f8f9fa;
}

/* Social Divider */
.social-divider {
    text-align: center;
    margin: 16px 0;
    position: relative;
}

.social-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #ddd;
}

.social-divider span {
    background-color: #fff;
    padding: 0 15px;
    color: #666;
    font-size: 14px;
    position: relative;
    z-index: 1;
}

/* Social Buttons */
.social-btn {
    width: 100%;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 4px;
    margin-bottom: 10px;
    font-family: 'Inter', sans-serif;
    border: 1px solid #ddd;
    background-color: #fff;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.social-btn:hover {
    background-color: #f8f9fa;
    border-color: #999;
}

.social-icon {
    font-size: 16px;
    font-weight: 700;
    width: 20px;
    text-align: center;
}

.facebook-btn .social-icon {
    color: #1877f2;
}

.google-btn .social-icon {
    color: #4285f4;
}

/* Forgot Password */
.forgot-password {
    text-align: center;
    margin-top: 12px;
}

.forgot-password a {
    color: #666;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s ease;
    font-family: 'Inter', sans-serif;
    font-weight: 400;
}

.forgot-password a:hover {
    color: #000;
}

/* Form Validation */
.form-group.error input {
    border-color: #ff6b6b;
}

.error-message {
    color: #ff6b6b;
    font-size: 12px;
    margin-top: 5px;
}

.form-group.success input {
    border-color: #28a745;
}

/* Success Modal */
.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.success-modal.open {
    display: flex;
}

.success-modal .modal-content {
    background-color: #fff;
    border-radius: 8px;
    padding: 40px;
    text-align: center;
    max-width: 400px;
    width: 100%;
}

.success-icon {
    width: 60px;
    height: 60px;
    background-color: #28a745;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.success-icon i {
    color: #fff;
    font-size: 24px;
}

.success-modal h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #000;
}

.success-modal p {
    color: #666;
    margin-bottom: 30px;
    line-height: 1.5;
}

.success-btn {
    background-color: #000;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.success-btn:hover {
    background-color: #333;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .auth-form {
        width: 350px;
        padding: 30px 15px;
    }
    
    .video-content h2 {
        font-size: 36px;
    }
    
    .video-content p {
        font-size: 16px;
    }
}

@media (max-width: 768px) {
    .auth-layout {
        flex-direction: column;
    }
    
    .auth-form {
        width: 100%;
        padding: 20px;
        margin: 0;
        order: 2;
    }
    
    .auth-video {
        height: 300px;
        margin: 0;
        order: 1;
    }
    
    .video-content h2 {
        font-size: 28px;
        margin-bottom: 15px;
    }
    
    .video-content p {
        font-size: 14px;
    }
    
    .auth-title {
        font-size: 22px;
        margin-bottom: 25px;
    }
    
    .form {
        gap: 18px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 0;
    }
    
    .auth-btn {
        padding: 10px 15px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .auth-form {
        padding: 15px;
    }
    
    .auth-video {
        height: 250px;
    }
    
    .video-content {
        padding: 20px;
    }
    
    .video-content h2 {
        font-size: 24px;
        margin-bottom: 10px;
    }
    
    .video-content p {
        font-size: 12px;
    }
    
    .auth-title {
        font-size: 20px;
        margin-bottom: 20px;
    }
    
    .form-group input {
        font-size: 15px;
        padding: 10px 12px;
    }
    
    .auth-btn {
        padding: 8px 12px;
        font-size: 12px;
    }
    
    .checkbox-text {
        font-size: 12px;
    }
}

/* Form Messages */
.auth-message {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
    animation: slideDown 0.3s ease;
}

.auth-message.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.auth-message.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

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