/* Authentication Pages Styles */
/* Login, Register, Reset Password */

.auth-container {
    min-height: 100vh;
    background: linear-gradient(-45deg, #0072b7 50%, #0072b7);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    position: relative;
    overflow: hidden;
}

.auth-container::before {
    content: '';
    position: absolute;
    top: -200px;
    left: -200px;
    width: 977px;
    height: 977px;
    flex-shrink: 0;
    border-radius: 977px;
    background: rgba(0, 114, 183, 0.70);
    filter: blur(300px);
    z-index: 0;
}

.auth-container::after {
    content: '';
    position: absolute;
    bottom: -200px;
    right: -200px;
    width: 819px;
    height: 819px;
    flex-shrink: 0;
    border-radius: 819px;
    background: rgba(0, 114, 183, 0.50);
    filter: blur(300px);
    z-index: 0;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 32px;
    box-shadow: 0 24px 48px rgba(0,0,0,0.08);
    overflow: visible;
    width: 913px;
    height: 650px;
    flex-shrink: 0;
    display: flex;
    position: relative;
    z-index: 1;
}

/* Blur Elements */
.blur-element-1 {
    position: absolute;
    top: 50px;
    right: -300px;
    width: 977px;
    height: 977px;
    flex-shrink: 0;
    border-radius: 977px;
    background: rgba(0, 114, 183, 0.70);
    filter: blur(300px);
    z-index: 0;
}

.blur-element-2 {
    position: absolute;
    top: 200px;
    left: -300px;
    width: 819px;
    height: 819px;
    flex-shrink: 0;
    border-radius: 819px;
    background: rgba(0, 114, 183, 0.50);
    filter: blur(300px);
    z-index: 0;
}

.blur-element-3 {
    position: absolute;
    top: -200px;
    left: -200px;
    width: 819px;
    height: 819px;
    flex-shrink: 0;
    border-radius: 819px;
    background: rgba(0, 114, 183, 0.50);
    filter: blur(300px);
    z-index: 0;
}

.blur-element-4 {
    position: absolute;
    bottom: -200px;
    left: -200px;
    width: 977px;
    height: 977px;
    flex-shrink: 0;
    border-radius: 977px;
    background: rgba(0, 114, 183, 0.70);
    filter: blur(300px);
    z-index: 0;
}

.blur-element-5 {
    position: absolute;
    top: -200px;
    right: -200px;
    width: 977px;
    height: 977px;
    flex-shrink: 0;
    border-radius: 977px;
    background: rgba(59, 130, 246, 0.70);
    filter: blur(300px);
    z-index: 0;
}

.blur-element-6 {
    position: absolute;
    bottom: -200px;
    right: -200px;
    width: 819px;
    height: 819px;
    flex-shrink: 0;
    border-radius: 819px;
    background: rgba(0, 114, 183, 0.50);
    filter: blur(300px);
    z-index: 0;
}

/* Form Section */
.auth-form-section {
    flex: 1;
    padding: 40px 30px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: white;
    overflow: visible;
    max-height: 100%;
    min-height: 100%;
    max-width: 420px;
    z-index: 1;
    border-radius: 32px 0 0 32px;
}

/* Image Section */
.auth-image-section {
    flex: 1;
    background: linear-gradient(135deg, #0072b7 0%, #0072b7 50%, #0072b7 100%);
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-align: center;
    padding: 60px 40px;
    overflow: hidden;
    border-radius: 0 32px 32px 0;
}

.auth-image-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    opacity: 0.3;
    animation: float 20s ease-in-out infinite;
}

.auth-image-section::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: rgba(255,255,255,0.1);
    border-radius: 0 0 0 100%;
    z-index: 1;
}

@keyframes float {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    33% { transform: translate(30px, -30px) rotate(120deg); }
    66% { transform: translate(-20px, 20px) rotate(240deg); }
}

/* Logo */
.logo {
    display: flex;
    align-items: left;
    justify-content: left;
    margin-top: 20px;
    margin-bottom: 40px;
    width: 100%;
    overflow: visible;
}

.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #0072b7 0%, #0072b7 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    box-shadow: 0 4px 12px rgba(0, 114, 183, 0.2);
    flex-shrink: 0;
}

.logo-image {
    width: auto;
    max-width: 160px;
    height: 50px;
    margin-right: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.logo-img {
    width: auto;
    height: 100%;
    max-width: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.logo-text {
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

/* Titles */
.welcome-title, .auth-title {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-align: center;
}

.welcome-subtitle, .auth-subtitle {
    color: #64748b;
    margin-bottom: 40px;
    font-size: 16px;
    line-height: 1.6;
    font-weight: 400;
    text-align: center;
    max-width: 280px;
    margin-left: auto;
    margin-right: auto;
}

/* Form Elements */
.form-group {
    margin-bottom: 24px;
}

.form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.form-control {
    width: 100%;
    padding: 16px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: #fafafa;
    color: #1f2937;
    font-family: inherit;
}

.form-control:focus {
    outline: none;
    border-color: #0072b7;
    background: white;
    box-shadow: 0 0 0 3px rgba(0, 114, 183, 0.1);
    transform: translateY(-1px);
}

.form-control::placeholder {
    color: #9ca3af;
    font-weight: 400;
}

.form-control.is-invalid {
    border-color: #dc3545;
    background: #fef2f2;
}

.invalid-feedback {
    display: block;
    width: 100%;
    margin-top: 6px;
    font-size: 14px;
    color: #dc3545;
    font-weight: 500;
}

/* Buttons */
.btn-login, .btn-register, .btn-reset {
    width: 100%;
    background: linear-gradient(135deg, #0072b7 0%, #004d7a 100%);
    border: none;
    border-radius: 12px;
    padding: 16px;
    font-weight: 600;
    font-size: 16px;
    color: white;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.btn-login::before, .btn-register::before, .btn-reset::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.btn-login:hover, .btn-register:hover, .btn-reset:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 30px rgba(0, 114, 183, 0.3);
    color: white;
}

.btn-login:hover::before, .btn-register:hover::before, .btn-reset:hover::before {
    left: 100%;
}

.btn-google {
    width: 100%;
    background: white;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    font-weight: 600;
    font-size: 16px;
    color: #374151;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 20px;
}

.btn-google:hover {
    border-color: #d1d5db;
    background: #f9fafb;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.google-icon {
    width: 20px;
    height: 20px;
}

/* Links */
.auth-link {
    color: #0072b7;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    position: relative;
}

.auth-link:hover {
    color: #004d7a;
    transform: translateY(-1px);
}

.auth-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #0072b7;
    transition: width 0.3s ease;
}

.auth-link:hover::after {
    width: 100%;
}

/* Divider */
.divider {
    display: flex;
    align-items: center;
    margin: 24px 0;
    color: #9ca3af;
    font-size: 14px;
    font-weight: 500;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e5e7eb;
}

.divider::before {
    margin-right: 16px;
}

.divider::after {
    margin-left: 16px;
}

/* Travel Images/Cards */
.travel-content {
    position: relative;
    z-index: 2;
}

.travel-images-container {
    position: relative;
    z-index: 2;
}

.travel-images {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    height: 200px;
}

.travel-cards {
    position: relative;
    width: 250px;
    height: 180px;
}

.travel-card {
    position: absolute;
    width: 200px;
    height: 150px;
    border-radius: 15px;
    background: var(--WHITE, #FFF);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border: 2px solid rgba(255,255,255,0.8);
    overflow: hidden;
    transition: all 0.3s ease;
}

.travel-card.card-back {
    transform: rotate(-8deg) translate(-10px, 10px);
    z-index: 1;
    opacity: 0.8;
}

.travel-card.card-front {
    transform: rotate(5deg) translate(10px, -5px);
    z-index: 2;
    opacity: 1;
    box-shadow: 0 12px 40px rgba(255,255,255,0.25);
    border-color: rgba(255, 255, 255, 0.4);
}

.travel-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 13px;
}

/* For slider style (login/register) */
.travel-image {
    width: 180px;
    height: 135px;
    border-radius: 24px;
    background: var(--WHITE, #FFF);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 5px 11px 32px 8px rgba(0, 0, 0, 0.07);
    border: 3px solid rgba(255,255,255,0.2);
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    flex-shrink: 0;
    opacity: 0.7;
    transform: scale(0.9);
}

.travel-image:nth-child(1) {
    transform: rotate(7.89deg) translateY(0px);
    z-index: 2;
}

.travel-image:nth-child(2) {
    transform: rotate(6.537deg) translateY(0px);
    z-index: 3;
    margin-left: -80px;
}

.travel-image:nth-child(3) {
    transform: rotate(-5deg) translateY(0px);
    z-index: 1;
    margin-left: -80px;
}

.travel-image.active {
    opacity: 1;
    transform: scale(1);
    z-index: 5;
    box-shadow: 0 12px 40px rgba(255,255,255,0.25);
    border-color: rgba(255, 255, 255, 0.4);
}

.travel-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.travel-title {
    font-size: 28px;
    font-weight: 700;
    color: white;
    margin-bottom: 16px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
    line-height: 1.2;
}

.travel-subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.9);
    line-height: 1.5;
    margin-bottom: 24px;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

/* Dots Indicator */
.dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.4);
    transition: all 0.3s ease;
    cursor: pointer;
}

.dot.active {
    background: white;
    transform: scale(1.2);
}

/* Responsive Design */

/* Tablet styles */
@media (max-width: 1024px) {
    .auth-card {
        width: 90%;
        max-width: 700px;
        height: auto;
        min-height: 450px;
    }
    
    .auth-form-section {
        padding: 40px 30px;
    }
    
    .auth-image-section {
        padding: 40px 30px;
    }
    
    .travel-content {
        display: none;
    }
    
    .travel-cards {
        width: 200px;
        height: 150px;
    }
    
    .travel-card {
        width: 160px;
        height: 120px;
    }
    
    .travel-images {
        gap: 15px;
    }
    
    .travel-image {
        width: 160px;
        height: 120px;
    }
}

/* Mobile styles */
@media (max-width: 768px) {
    .auth-container {
        padding: 15px;
        min-height: 100vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .auth-card {
        flex-direction: column;
        width: 100%;
        max-width: 400px;
        height: auto;
        min-height: auto;
        margin: 0;
        border-radius: 24px;
        overflow: hidden;
    }
    
    .auth-form-section {
        padding: 30px 25px;
        border-radius: 24px 24px 0 0;
        max-width: 100%;
    }
    
    .auth-image-section {
        padding: 30px 25px;
        min-height: 200px;
        border-radius: 0 0 24px 24px;
    }
    
    .welcome-title, .auth-title {
        font-size: 24px;
    }
    
    .welcome-subtitle, .auth-subtitle {
        font-size: 14px;
        max-width: 100%;
    }
    
    .form-control {
        padding: 14px 16px;
    }
    
    .btn-login, .btn-register, .btn-reset, .btn-google {
        padding: 14px;
    }
    
    .travel-content {
        display: none;
    }
    
    .travel-images-container {
        display: none;
    }
    
    .travel-images {
        display: none;
    }
    
    .travel-title {
        font-size: 20px;
    }
    
    .travel-subtitle {
        font-size: 14px;
    }
    
    .dots {
        gap: 6px;
    }
    
    .dot {
        width: 8px;
        height: 8px;
    }
}

/* Small mobile styles */
@media (max-width: 480px) {
    .auth-container {
        padding: 10px;
    }
    
    .auth-card {
        max-width: 100%;
        border-radius: 20px;
    }
    
    .auth-form-section {
        padding: 25px 20px;
    }
    
    .auth-image-section {
        padding: 25px 15px;
        min-height: 180px;
    }
    
    .welcome-title, .auth-title {
        font-size: 20px;
    }
    
    .welcome-subtitle, .auth-subtitle {
        font-size: 12px;
    }
    
    .form-control {
        padding: 12px 14px;
    }
    
    .btn-login, .btn-register, .btn-reset, .btn-google {
        padding: 12px;
    }
    
    .travel-content {
        display: none;
    }
    
    .travel-images-container {
        display: none;
    }
    
    .travel-images {
        display: none;
    }
    
    .travel-title {
        font-size: 18px;
    }
    
    .travel-subtitle {
        font-size: 12px;
    }
}

/* Decorative Elements */
.decorative-bottom-left {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 211px;
    height: 204px;
    flex-shrink: 0;
    aspect-ratio: 211/204;
    z-index: 1;
}

.decorative-top-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 266px;
    height: 337px;
    flex-shrink: 0;
    aspect-ratio: 266/337;
    z-index: 1;
}

/* Error States */
.error-message {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

.success-message {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
    padding: 12px 16px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    font-weight: 500;
}

/* Loading States */
.btn-loading {
    position: relative;
    color: transparent;
}

.btn-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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