/*
|--------------------------------------------------------------------------
| AMMIT - Home Page
|--------------------------------------------------------------------------
| Mobile-first landing page
| Designed to feel like the entry screen of a private messaging app.
|--------------------------------------------------------------------------
*/


/* ==========================================================================
   HOME PAGE
   ========================================================================== */

.home-page {
    width: 100%;
    min-width: 320px;

    min-height: 100vh;
    min-height: 100dvh;

    background:
        linear-gradient(
            rgba(11, 20, 26, 0.82),
            rgba(11, 20, 26, 0.96)
        ),
        url('../images/carrom-bg.jpg')
        center center / cover
        no-repeat;

    color: var(--text-primary);

    overflow-x: hidden;
}


/* ==========================================================================
   HOME WRAPPER
   ========================================================================== */

.home-wrapper {
    width: 100%;

    min-height: 100vh;
    min-height: 100dvh;

    display: flex;
    flex-direction: column;

    align-items: center;
    justify-content: center;

    position: relative;

    padding-top:
        max(24px, var(--safe-top));

    padding-right:
        max(20px, var(--safe-right));

    padding-bottom:
        max(24px, var(--safe-bottom));

    padding-left:
        max(20px, var(--safe-left));
}


/* ==========================================================================
   HOME CONTAINER
   ========================================================================== */

.home-container {
    width: 100%;
    max-width: 380px;

    display: flex;
    flex-direction: column;

    align-items: center;

    text-align: center;

    position: relative;

    z-index: 2;
}


/* ==========================================================================
   SMALL BRAND
   ========================================================================== */

.home-brand {
    margin-bottom: 30px;

    color: var(--text-secondary);

    font-size: 12px;
    font-weight: 600;

    letter-spacing: 5px;

    text-transform: uppercase;
}


/* ==========================================================================
   CARROM ICON
   ========================================================================== */

.carrom-icon {
    width: 92px;
    height: 92px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin-bottom: 22px;

    border-radius: 50%;

    background:
        rgba(32, 44, 51, 0.88);

    border:
        1px solid
        rgba(255, 255, 255, 0.10);

    box-shadow:
        0 12px 35px
        rgba(0, 0, 0, 0.30);
}


.carrom-icon span {
    display: block;

    color: var(--primary);

    font-size: 58px;
    font-weight: 300;

    line-height: 1;

    transform:
        translateY(-2px);
}


/* ==========================================================================
   MAIN TITLE
   ========================================================================== */

.home-title {
    margin: 0;

    color: var(--text-primary);

    font-size: 36px;
    font-weight: 500;

    line-height: 1.1;

    letter-spacing: 7px;
}


/* ==========================================================================
   ACCENT LINE
   ========================================================================== */

.home-line {
    width: 44px;
    height: 3px;

    margin-top: 20px;
    margin-bottom: 22px;

    border-radius: 999px;

    background: var(--primary);
}


/* ==========================================================================
   STATUS
   ========================================================================== */

.home-status {
    margin-bottom: 12px;

    color: var(--primary);

    font-size: 13px;
    font-weight: 600;

    letter-spacing: 2px;

    text-transform: uppercase;
}


/* ==========================================================================
   MESSAGE
   ========================================================================== */

.home-message {
    max-width: 300px;

    margin-bottom: 34px;

    color: var(--text-secondary);

    font-size: 15px;

    line-height: 1.7;
}


/* ==========================================================================
   PRIVATE LOGIN BUTTON
   ========================================================================== */

.home-login-btn {
    width: 100%;
    max-width: 280px;

    min-height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 12px 24px;

    border-radius: var(--radius-pill);

    background: var(--primary);

    color: #ffffff;

    font-size: 16px;
    font-weight: 600;

    letter-spacing: 0.2px;

    box-shadow:
        0 8px 24px
        rgba(0, 168, 132, 0.20);

    transition:
        background-color var(--transition-fast),
        transform var(--transition-fast),
        box-shadow var(--transition-fast);
}


.home-login-btn:active {
    transform: scale(0.98);

    box-shadow:
        0 4px 14px
        rgba(0, 168, 132, 0.18);
}


/* ==========================================================================
   FOOTER
   ========================================================================== */

.home-footer {
    width: 100%;

    position: absolute;

    left: 0;

    bottom:
        max(18px, var(--safe-bottom));

    padding-left:
        max(20px, var(--safe-left));

    padding-right:
        max(20px, var(--safe-right));

    text-align: center;

    color:
        rgba(134, 150, 160, 0.65);

    font-size: 10px;
    font-weight: 500;

    letter-spacing: 2px;

    text-transform: uppercase;
}


/* ==========================================================================
   SHORT PHONE SCREENS
   ========================================================================== */

@media (max-height: 650px) {

    .home-wrapper {
        justify-content: flex-start;

        padding-top:
            max(30px, var(--safe-top));

        padding-bottom:
            max(60px, var(--safe-bottom));
    }


    .home-brand {
        margin-bottom: 18px;
    }


    .carrom-icon {
        width: 74px;
        height: 74px;

        margin-bottom: 16px;
    }


    .carrom-icon span {
        font-size: 46px;
    }


    .home-title {
        font-size: 30px;
    }


    .home-line {
        margin-top: 15px;
        margin-bottom: 15px;
    }


    .home-message {
        margin-bottom: 22px;
    }

}


/* ==========================================================================
   TABLET
   ========================================================================== */

@media (min-width: 768px) {

    .home-container {
        max-width: 440px;
    }


    .carrom-icon {
        width: 104px;
        height: 104px;
    }


    .carrom-icon span {
        font-size: 66px;
    }


    .home-title {
        font-size: 42px;

        letter-spacing: 9px;
    }


    .home-message {
        max-width: 350px;

        font-size: 16px;
    }

}


/* ==========================================================================
   DESKTOP HOVER
   ========================================================================== */

@media (hover: hover) and (pointer: fine) {

    .home-login-btn:hover {
        background: var(--primary-dark);

        transform: translateY(-2px);

        box-shadow:
            0 12px 30px
            rgba(0, 168, 132, 0.25);
    }

}