@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@300;400;500;600;700&display=swap');

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

html {
    height: 100%;
}

body {
    font-family: 'Heebo', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: url('../wapper-bg.png') top center no-repeat #fff;
    background-size: cover;
    min-height: 100vh;
    direction: rtl;
    position: relative;
    overflow-x: hidden;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    z-index: 2;
}

.travelin-header {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    text-align: center;
}

.travelin-logo {
    color: white;
    font-size: 2rem;
    font-weight: bold;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease; margin-bottom: 10px;
}

.travelin-logo img {
    height: 50px;
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

.travelin-logo:hover {
    transform: scale(1.05);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.main-content {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.2);
    overflow: hidden;
    max-width: 950px;
    width: 100%;
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 80px;
}

.hero-section {
    background: linear-gradient(135deg, #ffffff 0%, #dff0fa 100%);
    color: #333;
    padding: 70px 50px 50px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
    animation: rotate 20s linear infinite;
}

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

.hero-title {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 15px;
    position: relative;
    z-index: 1;
}

.hero-subtitle {
    font-size: 1.4rem;
    font-weight: 300;
    margin-bottom: 30px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
    position: relative;
    z-index: 1;
}

.feature-item {
    text-align: center;
    padding: 20px;
}

.feature-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
    opacity: 0.8;
}

.feature-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
}

.feature-desc {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1.4;
}

.login-section {
    padding: 60px 50px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(5px);
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.login-title {
    font-size: 2.2rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.login-subtitle {
    color: #666;
    font-size: 1.1rem;
}

.login-form {
    max-width: 400px;
    margin: 0 auto;
}

.form-group {
    margin-bottom: 25px;
    text-align: right;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
    font-size: 1rem;
}

.form-group input {
    width: 100%;
    padding: 18px 25px;
    border: 2px solid rgba(225, 229, 233, 0.5);
    border-radius: 15px;
    font-size: 1.1rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(248, 249, 250, 0.8);
    backdrop-filter: blur(5px);
    text-align: right;
    box-shadow: 0 4px 15px rgba(0, 123, 191, 0.1);
}

.form-group input:focus {
    outline: none;
    border-color: #007bbf;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 8px 25px rgba(0, 123, 191, 0.2), 0 0 0 3px rgba(0, 123, 191, 0.15);
    transform: translateY(-2px);
}

.login-btn {
    width: 100%;
    padding: 20px;
    background: linear-gradient(135deg, #007bbf 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1.2rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin-top: 15px;
    box-shadow: 0 8px 25px rgba(0, 123, 191, 0.3);
    position: relative;
    overflow: hidden;
}

.login-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(0, 123, 191, 0.4);
}

.login-btn:active {
    transform: translateY(-1px) scale(0.98);
    transition: all 0.1s ease;
}

.error-message {
    background: #fee;
    color: #c33;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 20px;
    border-right: 4px solid #c33;
    text-align: right;
}

.powered-by {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(238, 238, 238, 0.3);
    color: #999;
    font-size: 0.9rem;
}

.powered-by img {
    height: 25px;
    margin: 0 10px;
    vertical-align: middle;
}

/* Company logos section */
.company-logos {
    margin-top: 30px;
    padding: 25px 0;
    text-align: center;
}

.company-logos h4 {
    color: #666;
    margin-bottom: 20px;
    font-size: 0.9rem;
    font-weight: 500;
}

.logos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 15px;
    align-items: center;
    justify-items: center;
}

.company-logo {
    height: 100px;
    width: auto;
    opacity: 0.7;
    transition: all 0.3s ease;
}

.company-logo:hover {
    opacity: 1;
    transform: scale(1.1);
}

/* Floating elements animation */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-element {
    position: absolute;
    color: rgba(255, 255, 255, 0.1);
    animation: float-around 20s infinite linear;
}

.floating-element:nth-child(1) {
    top: 20%;
    left: 10%;
    font-size: 2rem;
    animation-delay: 0s;
}

.floating-element:nth-child(2) {
    top: 60%;
    right: 15%;
    font-size: 1.5rem;
    animation-delay: -5s;
}

.floating-element:nth-child(3) {
    top: 80%;
    left: 20%;
    font-size: 1.8rem;
    animation-delay: -10s;
}

.floating-element:nth-child(4) {
    top: 40%;
    right: 25%;
    font-size: 2.2rem;
    animation-delay: -15s;
}

@keyframes float-around {
    0% { transform: translateY(0px) rotate(0deg); }
    25% { transform: translateY(-20px) rotate(90deg); }
    50% { transform: translateY(0px) rotate(180deg); }
    75% { transform: translateY(20px) rotate(270deg); }
    100% { transform: translateY(0px) rotate(360deg); }
}

/* WhatsApp Contact Button */
.whatsapp-contact {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    background: #25D366;
    border-radius: 50px;
    padding: 15px 20px;
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    transition: all 0.3s ease;
    text-decoration: none;
    color: white;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    font-size: 1rem;
}

.whatsapp-contact:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(37, 211, 102, 0.5);
    color: white;
    text-decoration: none;
}

.whatsapp-contact img {
    height: 24px;
    width: 24px;
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    /* Body and Background */
    body {
        background-size: cover;
        background-position: top center;
    }
    
    /* Container */
    .container {
        padding: 0;
        align-items: flex-start;
        padding-top: 10px;
    }
    
    /* Header */
    .travelin-header {
        top: 10px;
    }
    
    .travelin-logo img {
        height: 40px;
    }
    
    /* Main Content */
    .main-content {
        margin: 0;
        margin-top: 10px;
        border-radius: 0;
        min-height: calc(100vh - 10px);
        box-shadow: none;
        border: none;
    }
    
    /* Hero Section */
    .hero-section {
        padding: 40px 20px 30px;
    }
    
    .hero-title {
        font-size: 2rem;
        margin-bottom: 10px;
    }
    
    .hero-subtitle {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
    
    /* Features */
    .features-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        margin-top: 20px;
    }
    
    .feature-item {
        padding: 15px 10px;
    }
    
    /* Login Section */
    .login-section {
        padding: 30px 20px;
    }
    
    .login-title {
        font-size: 1.8rem;
    }
    
    /* Form Elements */
    .form-group input {
        padding: 15px 20px;
        font-size: 1rem;
        border-radius: 10px;
    }
    
    .login-btn {
        padding: 18px;
        font-size: 1.1rem;
        border-radius: 10px;
    }
    
    /* Company Logos */
    .company-logos {
        margin-top: 20px;
        padding: 20px 0;
    }
    
    .logos-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
    
    .company-logo {
        height: 30px;
    }
    
    /* WhatsApp Contact */
    .whatsapp-contact {
        bottom: 15px;
        right: 15px;
        padding: 12px 16px;
        font-size: 0.9rem;
    }
    
    .whatsapp-contact span {
        display: none; /* Hide text on mobile, show only icon */
    }
    
    /* Performance */
    .floating-elements {
        display: none; /* Hide on mobile for better performance */
    }
}

/* Business Content Section */
.business-content-section {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-radius: 20px;
    padding: 40px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.business-content {
    line-height: 1.8;
    color: #333;
}

.business-content h1,
.business-content h2,
.business-content h3 {
    color: #007bbf;
    margin: 20px 0 15px 0;
    font-weight: 600;
}

.business-content h2 {
    font-size: 2rem;
    border-bottom: 2px solid #007bbf;
    padding-bottom: 8px;
}

.business-content p {
    margin: 15px 0;
    font-size: 1.1rem;
}

.business-content ul,
.business-content ol {
    margin: 15px 0;
    padding-right: 30px;
}

.business-content li {
    margin: 8px 0;
    font-size: 1.1rem;
}

.business-content a {
    color: #007bbf;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.business-content a:hover {
    color: #0056b3;
}

.business-content strong {
    color: #333;
    font-weight: 600;
}


.footer-content {
    display: flex;
    width: 100%;
    flex-flow: row;
    align-items: center;
    justify-content: space-between;
    background-color: #11183e;
    padding: 20px;
    color: #b0b0b8;
}

.footer-logo {}

.footer-links a {
    margin-right: 10px;
    color: #b0b0b8;
    text-decoration: none;
}

.footer-credit {}

@media only screen and (max-width:768px) {
    body {
        font-size: 85%;
    }
    .form {
        margin-left: 10px;
        margin-right: 10px;
    }
    .footer-content {
        flex-flow: column;
    }
    .footer-credit {
        margin: 6px 0 0 0;
    }
}