/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}

body {
    background-color: #fff;
    min-height: 100vh;
}

/* Main Content */
.main-container {
    max-width: 1200px;
    margin: 6vw auto 40px auto;
    padding: 0 24px;
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 10vw;
    align-items: start;
    display: flex;
    width: 100%;
    justify-content: space-between;
    padding-top: 20px;
}

/* Welcome Section */


.welcome-section {
    width: 100%;
    max-width: 430px;
}

.welcome-section h1 {
    margin-bottom: 16px;
    color: #234678;
    font-size: 30px;
    font-weight: 400;
}

.app-info {
    margin-bottom: 20px;
    min-height: 40px;
    /* Fixed height to prevent layout shifts */
}

.app-info p {
    color: #595959;
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
    margin-top: 1px;
    text-align: center;
    /* width: 70%; */
}

.store-links {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
}

.store-link {
    color: #0099ff;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    position: relative;
    padding-right: 20px;
}

.store-link::after {
    content: '›';
    position: absolute;
    right: 0;
    top: 30%;
    transform: translateY(-50%);
    font-size: 20px;
}

.app-preview {
    max-width: 400px;
    position: relative;
    display: block;
    margin: 0 auto 0;
}

.preview-image {
    width: 100%;
    height: 250px;
    margin-bottom: 30px;
    object-fit: cover;
    /* Ensures the image covers the area without stretching */
    object-position: center;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #d9d9d9;
    cursor: pointer;
}

.dot.active {
    background: #0099ff;
}

/* Login Section */
.login-section {
    background: #fff;
    border-radius: 8px;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08); */
    width: 100%;
    max-width: 430px;
}

.login-container h2 {
    font-size: 36px;
    color: #234678;
    font-weight: 400;
    margin-bottom: 94px;
    margin-top: 13px;
    line-height: 1.2;
    text-align: center;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    color: #9daabd;
    font-size: 16px;
    margin-bottom: 2px;
}

.form-group input {
    width: 100%;
    padding: 10px 0;
    font-size: 16px;
    border: none;
    border-bottom: 1px solid #ced4da;
    outline: none;
    background: transparent;
}


.form-group input:hover,
input[type="email"]:hover,
input[type="password"]:hover {
    border-bottom: 1px solid #0088cc;
    -webkit-box-shadow: none;
    box-shadow: none;
}

.form-group input:focus,
#userPassword:focus {
    border-bottom: 1px solid #0088cc;
    outline: none;
    box-shadow: none;
}



.password-input-container {
    position: relative;
}

.toggle-password {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #8c8c8c;
    cursor: pointer;
    padding: 0;
}

.form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 33px 0;
}

.forgot-password {
    color: #0099ff;
    text-decoration: none;
    font-size: 14px;
}

.login-button {
    background: #0088cc;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.2s;
}

.login-button:hover {
    background-color: #006da3;
}

.register-section {
    text-align: center;
    padding-top: 2px;
    border-top: 1px solid #f0f0f0;
}

.register-section p {
    color: #595959;
    font-size: 16px;
    margin-bottom: 8px;
}

.register-link {
    color: #0099ff;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    line-height: 16px;
}

.alert {
    background: #fff2f0;
    border: 1px solid #ffccc7;
    border-radius: 4px;
    padding: 12px 16px;
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #f5222d;
    font-size: 14px;
}

/* Mobile Styles */
@media (max-width: 768px) {
    .top-nav {
        padding: 0 16px;
        height: 56px;
    }

    .nav-right {
        display: none;
    }

    .main-container {
        grid-template-columns: 1fr;
        gap: 32px;
        margin: 24px auto;
        padding: 0 16px;
    }

    .welcome-section {
        text-align: center;
        padding-top: 0;
    }

    .welcome-section h1 {
        font-size: 24px;
        margin-bottom: 24px;
    }

    .store-links {
        justify-content: center;
        margin-bottom: 32px;
    }

    .app-preview {
        margin: 0 auto;
    }

    .login-section {
        padding: 24px 16px;
        grid-column-start: 1;
        grid-row-start: 1;
    }

    .form-actions {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
        margin: 24px 0;
    }

    .forgot-password {
        text-align: center;
        order: 2;
    }

    .login-button {
        order: 1;
    }
}

.nav-button:hover {
    background: linear-gradient(45deg, #2980b9, #3498db);
    box-shadow: 0 4px 15px rgba(52, 152, 219, 0.2);
}

.store-link:hover {
    color: #008ae6;
}

.forgot-password:hover,
.register-link:hover {
    text-decoration: underline;
}

/* Focus States */
input:focus {
    outline: none;
    border-color: #0099ff;
    box-shadow: 0 0 0 2px rgba(0, 153, 255, 0.2);
}

.toggle-password:focus {
    outline: none;
    color: #0099ff;
}

/* Active States */
.login-button:active {
    background: #0077cc;
    transform: translateY(1px);
}

/* Mobile Styles */
@media (max-width: 768px) {
    .top-nav {
        padding: 0 16px;
        height: 56px;
    }

    .nav-right {
        display: none;
    }

    .main-container {
        background-color: #f0f2f5;
        grid-template-columns: 1fr;
        gap: 32px;
        margin: 0;
        padding: 0 16px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        min-height: 100vh;
    }

    .welcome-section {
        display: none;
    }

    .login-section {
        padding: 0;
        grid-column-start: 1;
        grid-row-start: 1;
        max-width: 100%;
        width: 100%;
        box-shadow: none;
        max-width: 440px;
        padding: 20px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .login-container {
        padding: 30px;
    }

    .form-actions {
        flex-direction: column;
        gap: 16px;
        align-items: stretch;
        margin: 24px 0;
    }

    .forgot-password {
        text-align: center;
        order: 2;
    }

    .login-button {
        order: 1;
    }
}