/* NEXTALYA Auth Page Styles */

:root {
    --primary-color: #ffc107;
    --secondary-color: #6c757d;
    --dark-color: #212529;
    --light-gray: #f8f9fa;
    --border-color: #dee2e6;
    --hover-color: #e9ecef;
    --text-muted: #6c757d;
    --gradient-primary: linear-gradient(135deg, #ffc107 0%, #ff8c00 100%);
    --gradient-dark: linear-gradient(135deg, #212529 0%, #495057 100%);
    --gradient-visual: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: var(--dark-color);
    overflow: hidden;
    height: 100vh;
}

/* Auth Container */
.auth-container {
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* Left Side - Visual */
.auth-visual {
    flex: 1;
    background: var(--gradient-visual);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.auth-visual::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="dots" width="20" height="20" patternUnits="userSpaceOnUse"><circle cx="10" cy="10" r="1" fill="rgba(255,255,255,0.1)"/></pattern></defs><rect width="100" height="100" fill="url(%23dots)"/></svg>');
    pointer-events: none;
}

.visual-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 500px;
}

.brand-logo {
    margin-bottom: 3rem;
}

.brand-logo h2 {
    font-size: 2.5rem;
    font-weight: 800;
}

/* Visual Showcase */
.visual-showcase {
    position: relative;
    height: 400px;
    margin-bottom: 3rem;
}

.showcase-item {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 1rem;
    box-shadow: var(--shadow-lg);
    animation: float 6s ease-in-out infinite;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.item-1 {
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.item-2 {
    top: 10%;
    right: 5%;
    animation-delay: 1.5s;
}

.item-3 {
    bottom: 30%;
    left: 5%;
    animation-delay: 3s;
}

.item-4 {
    bottom: 10%;
    right: 10%;
    animation-delay: 4.5s;
}

.showcase-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
}

.user-info h6,
.product-info h6 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--dark-color);
}

.user-info small {
    color: var(--text-muted);
}

.product-info .price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 0.9rem;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    50% {
        transform: translateY(-15px) rotate(2deg);
    }
}

.visual-text h3 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.visual-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    opacity: 0.9;
}

/* Right Side - Auth Forms */
.auth-forms {
    flex: 1;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    overflow-y: auto;
}

.form-container {
    width: 100%;
    max-width: 420px;
}

.back-to-landing {
    margin-bottom: 2rem;
}

.back-to-landing a {
    font-weight: 500;
    transition: color 0.3s ease;
}

.back-to-landing a:hover {
    color: var(--primary-color) !important;
}

/* Auth Form */
.auth-form {
    animation: fadeInUp 0.6s ease-out;
}

.form-header h3 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--dark-color);
}

.form-header p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

/* Form Controls */
.form-label {
    font-weight: 600;
    color: var(--dark-color);
    margin-bottom: 0.5rem;
}

.form-control {
    border: 2px solid var(--border-color);
    border-radius: 12px;
    padding: 0.6rem 0.9rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: var(--light-gray);
}

.form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
    background: white;
}

.form-control-lg {
    padding: 0.75rem 1rem;
    font-size: 1rem;
}

/* Password Input */
.password-input {
    position: relative;
}

.password-toggle {
    position: absolute;
    right: 0.9rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 4px;
    transition: color 0.3s ease;
}

.password-toggle:hover {
    color: var(--primary-color);
}

/* Password Strength */
.password-strength {
    margin-top: 0.5rem;
}

.strength-bar {
    height: 4px;
    background: var(--border-color);
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}

.strength-fill {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.3s ease;
    border-radius: 2px;
}

/* Buttons */
.btn {
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-warning {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    color: var(--dark-color);
}

.btn-warning:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    color: var(--dark-color);
}

.btn-lg {
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
}

.btn-outline-dark,
.btn-outline-primary,
.btn-outline-info {
    border-width: 2px;
    font-weight: 600;
}

.btn-outline-dark:hover {
    background: var(--dark-color);
    border-color: var(--dark-color);
}

.btn-outline-primary:hover {
    background: #0d6efd;
    border-color: #0d6efd;
}

.btn-outline-info:hover {
    background: #0dcaf0;
    border-color: #0dcaf0;
}

/* Divider */
.divider {
    position: relative;
    text-align: center;
    margin: 1.5rem 0;
}

.divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border-color);
}

.divider span {
    background: white;
    padding: 0 1rem;
    color: var(--text-muted);
    font-weight: 500;
    position: relative;
    z-index: 1;
}

/* Social Login */
.social-login .btn {
    position: relative;
    overflow: hidden;
    padding: 0.6rem 1.2rem;
    font-size: 0.95rem;
}

.social-login .btn i {
    font-size: 1.1rem;
}

/* Form Check */
.form-check-input {
    border: 2px solid var(--border-color);
    border-radius: 4px;
}

.form-check-input:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.form-check-input:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 193, 7, 0.25);
}

.form-check-label {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.form-check-label a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.form-check-label a:hover {
    text-decoration: underline;
}

/* Form Footer */
.form-footer p {
    margin: 0;
    font-weight: 500;
    font-size: 0.9rem;
}

.form-footer a {
    color: var(--primary-color);
    text-decoration: none;
}

.form-footer a:hover {
    text-decoration: underline;
}

/* Input Group */
.input-group-text {
    background: var(--light-gray);
    border: 2px solid var(--border-color);
    border-right: none;
    font-weight: 600;
    color: var(--text-muted);
    padding: 0.6rem 0.9rem;
}

.input-group .form-control {
    border-left: none;
}

.input-group:focus-within .input-group-text {
    border-color: var(--primary-color);
    background: white;
}

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

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    animation: slideInRight 0.6s ease-out;
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .auth-container {
        flex-direction: column;
    }
    
    .auth-visual {
        flex: none;
        height: 40vh;
        min-height: 300px;
    }
    
    .visual-showcase {
        height: 200px;
        margin-bottom: 1rem;
    }
    
    .showcase-item {
        padding: 0.75rem;
        font-size: 0.9rem;
    }
    
    .showcase-item img {
        width: 50px;
        height: 50px;
    }
    
    .visual-text h3 {
        font-size: 1.5rem;
    }
    
    .visual-text p {
        font-size: 1rem;
    }
    
    .auth-forms {
        flex: 1;
        overflow-y: auto;
    }
}

@media (max-width: 767.98px) {
    body {
        overflow: auto;
    }
    
    .auth-container {
        min-height: 100vh;
        height: auto;
    }
    
    .auth-visual {
        height: 50vh;
        min-height: 400px;
    }
    
    .visual-content {
        padding: 1rem;
    }
    
    .brand-logo h2 {
        font-size: 2rem;
    }
    
    .visual-showcase {
        height: 150px;
        margin-bottom: 1rem;
    }
    
    .showcase-item {
        padding: 0.5rem;
        font-size: 0.8rem;
    }
    
    .showcase-item img {
        width: 40px;
        height: 40px;
    }
    
    .visual-text h3 {
        font-size: 1.25rem;
        margin-bottom: 0.5rem;
    }
    
    .visual-text p {
        font-size: 0.9rem;
    }
    
    .auth-forms {
        padding: 1rem;
    }
    
    .form-header h3 {
        font-size: 1.4rem;
    }
    
    .form-header p {
        font-size: 0.85rem;
    }
    
    .btn-lg {
        padding: 0.65rem 1.2rem;
        font-size: 0.95rem;
    }
    
    .social-login .btn {
        padding: 0.55rem 1rem;
        font-size: 0.9rem;
    }
}

/* Loading States */
.loading {
    position: relative;
    pointer-events: none;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid rgba(255, 193, 7, 0.3);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Success/Error States */
.is-valid {
    border-color: #28a745 !important;
}

.is-invalid {
    border-color: #dc3545 !important;
}

.valid-feedback,
.invalid-feedback {
    font-size: 0.875rem;
    font-weight: 500;
    margin-top: 0.25rem;
}

/* Focus States */
.form-control:focus,
.btn:focus {
    outline: none;
}

/* Hover Effects */
.showcase-item:hover {
    transform: translateY(-5px) !important;
    box-shadow: var(--shadow-lg);
}

/* Custom Scrollbar */
.auth-forms::-webkit-scrollbar {
    width: 6px;
}

.auth-forms::-webkit-scrollbar-track {
    background: var(--light-gray);
}

.auth-forms::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 3px;
}

.auth-forms::-webkit-scrollbar-thumb:hover {
    background: var(--text-muted);
}