/* Auth Layout Enhancements - Modern & Vibrant */
.auth-body {
    background: linear-gradient(
        135deg,
        rgba(255, 131, 67, 0.08) 0%,
        #ffffff 30%,
        rgba(82, 76, 66, 0.05) 70%,
        rgba(255, 131, 67, 0.08) 100%
    );
    font-family: "Inter", sans-serif;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-body::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(
        circle,
        rgba(255, 131, 67, 0.1) 0%,
        transparent 70%
    );
    border-radius: 50%;
    top: -250px;
    right: -250px;
    animation: pulse 8s ease-in-out infinite;
}

.auth-body::after {
    content: "";
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(
        circle,
        rgba(82, 76, 66, 0.08) 0%,
        transparent 70%
    );
    border-radius: 50%;
    bottom: -200px;
    left: -200px;
    animation: pulse 10s ease-in-out infinite reverse;
}

@keyframes pulse {
    0%,
    100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.3;
    }
}

.auth-container {
    background: white;
    box-shadow: 0 25px 60px rgba(255, 131, 67, 0.12),
        0 10px 25px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 1400px;
    display: flex;
    min-height: 85vh;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    z-index: 1;
    margin: 2rem;
}

/* Visual Section - Left Side */
.auth-visual-section {
    flex: 1;
    background: linear-gradient(
        135deg,
        rgba(255, 131, 67, 0.95) 0%,
        rgba(255, 131, 67, 0.85) 50%,
        rgba(82, 76, 66, 0.9) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
    position: relative;
    overflow: hidden;
}

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

/* Decorative Circles */
.decorative-circles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    overflow: hidden;
    z-index: 1;
}

.circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: -100px;
    right: -100px;
    animation: float 15s ease-in-out infinite;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: -50px;
    left: -50px;
    animation: float 20s ease-in-out infinite reverse;
}

.circle-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    left: 10%;
    animation: float 12s ease-in-out infinite;
}

@keyframes float {
    0%,
    100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Brand Hero */
.brand-hero {
    animation: fadeInUp 0.8s ease-out;
}

.brand-logo-hero {
    width: 100px;
    height: 100px;
    background: white;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2rem;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    transition: transform 0.4s ease;
    animation: bounceIn 1s ease-out;
}

.brand-logo-hero:hover {
    transform: scale(1.05) rotate(5deg);
}

.hero-logo {
    width: 60px;
    height: auto;
}

.hero-title {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin-bottom: 0.5rem;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: 3rem;
    font-weight: 500;
    animation: fadeInUp 0.8s ease-out 0.4s backwards;
}

/* Floating Elements */
.floating-elements {
    position: relative;
    height: 220px;
    margin: 3rem 0;
}

.floating-element {
    position: absolute;
    background: rgba(255, 255, 255, 0.95);
    padding: 1.25rem 1.75rem;
    border-radius: 16px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    gap: 1rem;
    font-weight: 600;
    color: #524c42;
    border: 2px solid rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.floating-element:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.floating-element i {
    color: #ff8343;
    font-size: 1.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.floating-element span {
    font-size: 0.95rem;
}

.element-1 {
    top: 0;
    left: 0;
    animation: gentleFloat 6s ease-in-out infinite,
        fadeInUp 0.8s ease-out 0.6s backwards;
}

.element-2 {
    top: 30%;
    right: 0;
    transform: translateY(-50%);
    animation: gentleFloat 8s ease-in-out infinite 1s,
        fadeInUp 0.8s ease-out 0.8s backwards;
}

.element-3 {
    bottom: 0;
    left: 20%;
    animation: gentleFloat 7s ease-in-out infinite 2s,
        fadeInUp 0.8s ease-out 1s backwards;
}

@keyframes gentleFloat {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

/* Visual Stats */
.visual-stats {
    display: flex;
    justify-content: space-around;
    gap: 2rem;
    animation: fadeInUp 0.8s ease-out 1.2s backwards;
}

.stat-item {
    text-align: center;
    transition: transform 0.3s ease;
}

.stat-item:hover {
    transform: translateY(-5px);
}

.stat-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.stat-icon i {
    color: white;
    font-size: 1.5rem;
}

.stat-item h3 {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0.25rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.stat-item p {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    font-weight: 500;
}

/* Form Section - Right Side */
.auth-form-section {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: #fafafa;
    position: relative;
}

.form-container {
    max-width: 480px;
    width: 100%;
    animation: fadeInRight 0.8s ease-out;
}

/* Mobile Brand Section */
.mobile-brand-section {
    animation: fadeInDown 0.8s ease-out;
}

.mobile-logo {
    height: 80px;
    filter: drop-shadow(0 4px 12px rgba(255, 131, 67, 0.3));
}

.mobile-title {
    font-size: 2rem;
    font-weight: 700;
    color: #ff8343;
}

.mobile-subtitle {
    color: #6b7280;
    font-size: 1rem;
}

/* Desktop Header */
.brand-logo {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #ffebe0 0%, #ffd9c2 100%);
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    box-shadow: 0 10px 30px rgba(255, 131, 67, 0.3);
    transition: transform 0.3s ease;
}

.brand-logo:hover {
    transform: scale(1.05) rotate(-5deg);
}

.auth-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.2;
    color: #111827;
}

.auth-subtitle {
    font-size: 1rem;
    color: #6b7280;
    margin-bottom: 0;
    line-height: 1.6;
}

/* Form Wrapper */
.form-wrapper {
    padding: 2rem;
}

/* Custom Alert */
.custom-alert {
    border-radius: 12px;
    border: none;
    border-left: 4px solid #10b981;
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    color: #065f46;
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
}

.custom-alert i {
    font-size: 1.25rem;
}

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

.divider-text {
    background: #fafafa;
    padding: 0 1rem;
    color: #9ca3af;
    font-size: 0.875rem;
    font-weight: 500;
    position: relative;
    z-index: 1;
}

.auth-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(
        90deg,
        transparent,
        #e5e7eb 20%,
        #e5e7eb 80%,
        transparent
    );
}

/* Register Link */
.register-text {
    color: #6b7280;
    font-size: 0.95rem;
    margin: 0;
}

.register-link {
    color: #ff8343;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
}

.register-link:hover {
    color: #ff6a00;
}

/* Security Badge */
.security-badge {
    padding: 1rem;
    background: linear-gradient(
        135deg,
        rgba(255, 131, 67, 0.05) 0%,
        rgba(82, 76, 66, 0.05) 100%
    );
    border-radius: 12px;
    border: 1px solid rgba(255, 131, 67, 0.1);
    color: #6b7280;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.security-badge i {
    color: #ff8343;
    font-size: 1.1rem;
}

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

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

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

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 991.98px) {
    .auth-container {
        flex-direction: column;
        min-height: auto;
        margin: 1rem;
    }

    .auth-visual-section {
        padding: 3rem 2rem;
        min-height: 400px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .floating-elements {
        height: 180px;
    }

    .visual-stats {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .auth-container {
        border-radius: 16px;
    }

    .auth-form-section {
        padding: 2rem 1.5rem;
    }

    .form-wrapper {
        padding: 1.5rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .floating-element {
        padding: 1rem 1.25rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .auth-body::before,
    .auth-body::after {
        display: none;
    }

    .auth-container {
        margin: 0.5rem;
    }

    .auth-form-section {
        padding: 1.5rem 1rem;
    }

    .visual-stats {
        flex-direction: column;
        gap: 1.5rem;
    }

    .floating-element span {
        font-size: 0.8rem;
    }

    .brand-logo-hero {
        width: 80px;
        height: 80px;
    }

    .hero-logo {
        width: 50px;
    }

    .mobile-logo {
        height: 64px;
    }
}

/* Legacy form styles compatibility */
.form-label {
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #374151;
    font-size: 0.9rem;
}

.form-control {
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    transition: all 0.2s ease;
    background: #fafafa;
}

.form-control:focus {
    border-color: #ff8343;
    box-shadow: 0 0 0 0.2rem rgba(255, 131, 67, 0.15);
    background: white;
}

.btn-auth {
    border-radius: 12px;
    padding: 0.875rem 1.5rem;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.btn-auth:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 131, 67, 0.3);
}

.btn-google {
    background: white;
    color: #3c4043;
    border: 1px solid #dadce0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    transition: all 0.3s ease;
}

.btn-google:hover {
    background: #f8f9fa;
    border-color: #dadce0;
    color: #3c4043;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.auth-links {
    color: #6b7280;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.auth-links:hover {
    color: #ff8343;
}
