/* Authentication Page Styles - BullinBear */

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

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

.auth-container {
    display: flex;
    height: 100vh;
}

/* Left Panel - Purple Gradient with 3D Elements */
.left-panel {
    flex: 1;
    background: linear-gradient(135deg, #2E1065 0%, #5B21B6 50%, #7C3AED 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

/* Language Selector */
.language-selector {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    z-index: 10;
}

.language-selector .btn {
    color: rgba(255, 255, 255, 0.8) !important;
    text-decoration: none;
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border: none;
}

.language-selector .btn:hover {
    color: white !important;
}

.language-selector .dropdown-toggle::after {
    margin-left: 0.5rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Logo */
.logo-container {
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.logo-circle {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.logo-text {
    color: white;
    font-weight: bold;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* Content Section */
.content-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 2;
}

.main-heading {
    color: white;
    font-size: 2.2rem;
    font-weight: 600;
    line-height: 1.3;
    max-width: 400px;
    margin-bottom: 3rem;
}

/* 3D Geometric Shapes */
.illustration-container {
    position: absolute;
    right: -100px;
    top: 50%;
    transform: translateY(-50%);
    width: 500px;
    height: 500px;
}

.geometric-shape {
    position: absolute;
    border-radius: 20px;
    animation: float 6s ease-in-out infinite;
}

.shape-1 {
    width: 120px;
    height: 40px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.05));
    top: 80px;
    left: 50px;
    transform: rotate(-15deg);
    animation-delay: 0s;
}

.shape-2 {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #F59E0B 0%, #F97316 100%);
    top: 150px;
    left: 200px;
    border-radius: 50%;
    animation-delay: 1s;
}

.shape-3 {
    width: 160px;
    height: 100px;
    background: linear-gradient(45deg, rgba(34, 197, 94, 0.8), rgba(34, 197, 94, 0.4));
    top: 200px;
    left: 100px;
    transform: rotate(25deg);
    border-radius: 15px;
    animation-delay: 2s;
}

.shape-4 {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #06B6D4 0%, #0891B2 100%);
    top: 100px;
    left: 300px;
    border-radius: 50%;
    animation-delay: 3s;
}

.shape-5 {
    width: 100px;
    height: 30px;
    background: linear-gradient(45deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    top: 320px;
    left: 180px;
    transform: rotate(-25deg);
    animation-delay: 4s;
}

.shape-6 {
    width: 90px;
    height: 90px;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.6), rgba(168, 85, 247, 0.3));
    top: 280px;
    left: 80px;
    border-radius: 20px;
    animation-delay: 5s;
}

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

.shape-1 { --rotate: -15deg; }
.shape-3 { --rotate: 25deg; }
.shape-5 { --rotate: -25deg; }

/* Right Panel - Auth Form */
.right-panel {
    flex: 1;
    background: #FAFAFA;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
}

.form-container {
    width: 100%;
    max-width: 400px;
    background: white;
    padding: 3rem 2.5rem;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

/* Form Header */
.form-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-title {
    font-size: 2rem;
    font-weight: 600;
    color: #1F2937;
    margin-bottom: 0.5rem;
}

.auth-subtitle {
    color: #6B7280;
    font-size: 1rem;
    margin-bottom: 2rem;
}

/* Form Groups */
.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: #374151;
    font-weight: 500;
    font-size: 0.95rem;
}

.input-container {
    position: relative;
}

.form-control {
    width: 100%;
    padding: 1rem 3rem 1rem 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 12px;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: #FAFAFA;
    min-height: 56px;
}

.form-control:focus {
    outline: none;
    border-color: #7C3AED;
    background: white;
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.1);
}

.form-control::placeholder {
    color: #9CA3AF;
    font-size: 0.95rem;
}

/* Input Toggle Button (Eye Icon) */
.input-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #9CA3AF;
    font-size: 1.1rem;
    cursor: pointer;
    transition: color 0.3s ease;
    padding: 0.5rem;
}

.input-toggle:hover {
    color: #6B7280;
}

/* Auth Button */
.btn-auth {
    width: 100%;
    padding: 1rem;
    background: #2E1065;
    border: none;
    border-radius: 12px;
    color: white;
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
    min-height: 56px;
}

.btn-auth:hover {
    background: #1E0A46;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(46, 16, 101, 0.3);
}

/* Form Footer */
.form-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    text-align: center;
}

.forgot-password {
    margin-bottom: 0.5rem;
}

.switch-auth {
    font-size: 0.95rem;
}

.link-primary {
    color: #06B6D4;
    text-decoration: none;
    font-weight: 500;
    margin-left: 0.5rem;
}

.link-primary:hover {
    color: #0891B2;
    text-decoration: underline;
}

.forgot-password .link-primary {
    margin-left: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .auth-container {
        flex-direction: column;
    }

    .left-panel {
        flex: none;
        height: 40vh;
        padding: 1.5rem;
    }

    .main-heading {
        font-size: 1.8rem;
        margin-bottom: 1rem;
    }

    .illustration-container {
        right: -150px;
        width: 400px;
        height: 400px;
    }

    .right-panel {
        flex: none;
        height: 60vh;
        padding: 1rem;
        overflow-y: auto;
    }

    .form-container {
        padding: 2rem 1.5rem;
        box-shadow: none;
        border-radius: 20px 20px 0 0;
    }

    .auth-title {
        font-size: 1.7rem;
    }
}

@media (max-width: 480px) {
    .main-heading {
        font-size: 1.5rem;
        max-width: 300px;
    }

    .form-container {
        padding: 1.5rem 1rem;
    }

    .auth-title {
        font-size: 1.5rem;
    }

    .illustration-container {
        display: none;
    }
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
    .geometric-shape {
        animation: none;
    }

    .btn-auth:hover {
        transform: none;
    }
}

/* Error states */
.form-control.is-invalid {
    border-color: #dc3545;
    background-color: #fff5f5;
}

.invalid-feedback {
    display: block;
    color: #dc3545;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Success states */
.form-control.is-valid {
    border-color: #198754;
    background-color: #f0f8f0;
}

.valid-feedback {
    display: block;
    color: #198754;
    font-size: 0.875rem;
    margin-top: 0.25rem;
}

/* Focus states */
.form-control:focus:invalid {
    border-color: #dc3545;
    box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}

.form-control:focus:valid {
    border-color: #198754;
    box-shadow: 0 0 0 3px rgba(25, 135, 84, 0.1);
}

/* Remember Me Checkbox */
.remember-me {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.remember-me input[type="checkbox"] {
    margin-right: 0.5rem;
    width: 18px;
    height: 18px;
}

.remember-me label {
    color: #6B7280;
    font-size: 0.95rem;
    margin-bottom: 0;
}
