/* ================= RESET ================= */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: White;
    font-family: tahoma;
    direction: rtl;
    padding: 15px;
}

.RegisterClass {
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: tahoma;
    font-size: 1.2rem;
    color: #305e8f;
    cursor: pointer;
    margin-top: 18px;
    gap: 11px;
}
/* ================= LAYOUT ================= */
.maincontainer {
    width: 100%;
    max-width: 1100px;
}

.myheader {
    background: #106238;
    color: #d6ffea;
    text-align: center;
    padding: 16px;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 16px 16px 0 0;
    box-shadow: 0 6px 18px rgba(0,0,0,.1);
}

.card {
    background: #fff;
    border: 2px solid #b5cdc3;
    border-top: none;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 10px 25px rgba(0,0,0,.2);
    padding: 30px 20px;
}


/* ================= GRID STAGE ================= */

.stage {
    display: grid;
    gap: 30px;
    align-items: center;
    height: 500px;
}

/* دسکتاپ */
@media (min-width: 768px) {
    .stage {
        grid-template-columns: 1fr 1fr;
    }
}


/* ================= IMAGE ================= */

.image-stack {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rotating-image {
    width: 100%;
    max-width: 460px;
    animation: rotate 120s linear infinite;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

.logoClass {
    position: absolute;
    width: 35%;
    max-width: 140px;
}


/* ================= FORM ================= */

.auth {
    width: 100%;
    max-width: 380px;
    margin: auto;
    display: flex;
    flex-direction: column;
    gap: 28px;
}

.input-group {
    width: 100%;
    position: relative;
}

    .input-group i {
        position: absolute;
        right: 12px;
        top: 50%;
        transform: translateY(-50%);
        color: #308f69;
    }

.input {
    width: 100%;
    padding: 12px 38px 12px 12px;
    border-radius: 10px;
    border: 2px solid #a0b2bc;
    font-size: 1.15rem;
    font-family: tahoma;
    font-weight: 800;
    direction: ltr;
    transition: .25s;
}

    .input:focus {
        outline: none;
        border-color: #106238;
        box-shadow: 0 0 0 3px rgba(16,98,56,.15);
    }


/* ================= BUTTON ================= */

.btn {
    width: 100%;
    padding: 13px;
    border: none;
    border-radius: 10px;
    background: #106238;
    color: #fff;
    font-size: 1.2rem;
    font-family: Tahoma;
    cursor: pointer;
    transition: .25s;
}

    .btn:hover {
        background: #2E885A;
    }


/* ================= TEXT ================= */

.errorMsg {
    font-size: .8rem;
}

.errorMsgUserPsw {
    text-align: center;
    margin-bottom: 5px;
}

.register-link {
    text-align: center;
    color: #305e8f;
    font-size: 15px;
    cursor: pointer;
    margin-top: 10px;
}


/* ================= MOBILE FIXES ================= */

@media (max-width: 480px) {

    .card {
        padding: 85px 15px;
    }

    .rotating-image {
        max-width: 260px;
    }

    .logoClass {
        max-width: 90px;
    }

    .auth {
        gap: 14px;
    }
}
