/**
 * Standalone Auth Pages - Split Screen Design
 * Turquoise/Teal Theme (#48c9b0)
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    overflow: hidden;
    height: 100vh;
}

.auth-page {
    display: flex;
    height: 100vh;
    width: 100vw;
}

/* ============================================
   LEFT SIDE - FORM
   ============================================ */
.form-side {
    flex: 1;
    background: white;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 2rem;
    overflow-y: auto;
    max-height: 100vh;
}

.form-content {
    width: 100%;
    max-width: 450px;
}

.logo-section {
    text-align: center;
    margin-bottom: 2rem;
}

.logo-icon {
    font-size: 3rem;
    color: #2563eb;
}

.page-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 2rem;
    letter-spacing: 2px;
}

.auth-form {
    width: 100%;
}

/* Message Container */
#messageContainer {
    margin-bottom: 1.5rem;
}

.message {
    padding: 1rem;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 0.9rem;
    animation: slideDown 0.3s ease;
}

.message.error {
    background: #fee;
    border: 1px solid #fcc;
    color: #c33;
}

.message.success {
    background: #efe;
    border: 1px solid #cfc;
    color: #3c3;
}

.message.info {
    background: #eef;
    border: 1px solid #ccf;
    color: #33c;
}

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

/* Input Groups */
.input-group {
    position: relative;
    margin-bottom: 1.5rem;
}

.input-icon {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #95a5a6;
    font-size: 1.1rem;
}

.input-group input,
.input-group select {
    width: 100%;
    padding: 1rem 1rem 1rem 3rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #f9f9f9;
}

.input-group input:focus,
.input-group select:focus {
    outline: none;
    border-color: #2563eb;
    background: white;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.input-group input::placeholder {
    color: #bdc3c7;
}

.input-group select {
    cursor: pointer;
    color: #555;
}

.input-group select option {
    padding: 0.5rem;
}

.input-group select:invalid {
    color: #bdc3c7;
}

/* Checkbox Group */
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.checkbox-group input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #2563eb;
}

.checkbox-group label {
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
}

.checkbox-group .link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
}

.checkbox-group .link:hover {
    text-decoration: underline;
}

/* Submit Button */
.submit-btn {
    width: 100%;
    padding: 1rem;
    background: #2563eb;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.submit-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.submit-btn.loading .btn-text {
    opacity: 0.7;
}

.btn-loader {
    display: none;
}

.submit-btn.loading .btn-loader {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-left: 0.5rem;
}

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

/* Social Login */
.social-login {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.social-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid #e0e0e0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.2rem;
}

.social-btn.facebook {
    color: #3b5998;
}

.social-btn.google {
    color: #db4437;
}

.social-btn.twitter {
    color: #1da1f2;
}

.social-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.social-btn.facebook:hover {
    background: #3b5998;
    color: white;
    border-color: #3b5998;
}

.social-btn.google:hover {
    background: #db4437;
    color: white;
    border-color: #db4437;
}

.social-btn.twitter:hover {
    background: #1da1f2;
    color: white;
    border-color: #1da1f2;
}

/* Switch Auth Link */
.switch-auth {
    text-align: center;
    font-size: 0.95rem;
    color: #555;
}

.switch-auth .link {
    color: #2563eb;
    text-decoration: none;
    font-weight: 600;
    margin-left: 0.25rem;
}

.switch-auth .link:hover {
    text-decoration: underline;
}

/* ============================================
   RIGHT SIDE - IMAGE
   ============================================ */
.image-side {
    flex: 1;
    background-image: url('/shared/assets/images/backgrounds/download.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    position: relative;
    overflow: hidden;
    padding-top: 3rem;
}

.image-overlay {
    text-align: center;
    color: #2563eb;
    z-index: 2;
    padding: 2rem;
}

.brand-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(255, 255, 255, 0.8);
    letter-spacing: 2px;
}

.brand-subtitle {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
}

.brand-tagline {
    font-size: 1rem;
    font-style: italic;
    text-shadow: 1px 1px 3px rgba(255, 255, 255, 0.8);
}

/* Decorative elements */
.image-side::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite;
}

.image-side::after {
    content: '';
    position: absolute;
    bottom: -50%;
    left: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
    animation: float 8s ease-in-out infinite reverse;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(20px, 20px); }
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 968px) {
    .auth-page {
        flex-direction: column;
    }
    
    .form-side {
        order: 2;
        flex: 1;
    }
    
    .image-side {
        order: 1;
        min-height: 200px;
        flex: 0 0 200px;
    }
    
    .brand-title {
        font-size: 1.8rem;
    }
    
    .brand-subtitle {
        font-size: 1rem;
    }
    
    .brand-tagline {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .form-side {
        padding: 1rem;
    }
    
    .form-content {
        max-width: 100%;
    }
    
    .page-title {
        font-size: 1.5rem;
    }
    
    .logo-icon {
        font-size: 2rem;
    }
    
    .social-login {
        gap: 0.75rem;
    }
    
    .social-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }
}
