/* assets/css/style.css */

/* --- Reset & Base --- */
:root {
    --text-color: #333;
    --text-secondary: #666;
    --btn-bg: #1a1a1a;
    --btn-text: #fff;
    --font-heading: 'Cairo', sans-serif;
    --font-english: 'Segoe UI', 'Roboto', sans-serif;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-heading);
    /* Set the provided GIF as the full screen background */
    background-image: url('../img/sulaimanalaskari_index_bg.gif');
    background-size: contain;
    /* Ensure logo is never cropped */
    background-position: center center;
    /* Center the logo by default */
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    /* Center content vertically */
    text-align: center;
    overflow: hidden;
}

/* --- Container --- */
.page-container {
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    align-items: center;
    animation: fadeIn 1s ease-out;
    padding-top: 45vh;
    /* Increased from 35vh to push button down per request */
}

/* --- Button --- */
/* No margin needed as container padding handles vertical spacing */

.login-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 12px 35px;
    background-color: var(--btn-bg);
    color: var(--btn-text);
    text-decoration: none;
    border-radius: 50px;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    flex-direction: row-reverse;
    /* Icon logic for RTL text "دخول" */
}

.login-btn:hover {
    background-color: #000;
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.login-btn .icon-arrow {
    transform: rotate(180deg);
    width: 18px;
    height: 18px;
    stroke-width: 2.5;
}

/* --- Animations --- */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Media Queries --- */
@media (max-width: 768px) {

    /* For mobile: Adjust layout for portrait view */
    body {
        /* Zoom in significantly so the calligraphy is prominent */
        background-size: 350%;
        background-position: center 35%;
        /* Position logo in upper-middle */
    }

    .page-container {
        /* Push the button down to clear the logo text */
        /* Increased to 60vh to move it lower per request */
        padding-top: 60vh;
    }

    .login-btn {
        width: auto;
        min-width: 240px;
        padding: 16px 40px;
        /* Revert to pill shape padding */
        font-size: 1.2rem;
    }
}