/* Page styles of templates/views/login/index.php */

/* Phones: a brand card (logo + Google Play) and the sign-in card — stacked
   when the phone is upright, side by side when it is turned. Desktop: one
   sign-in card; the Play card shows only in a narrow window. */
.auth-cards {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
    max-width: 420px;
    margin: auto;
}
.auth-cards > .auth-card {
    margin: 0;
}
.brand-card .u-mb-24 {
    margin-bottom: 18px;
}

.mobile-app-download {
    display: none;
}
.mobile-app-download.auth-card {
    padding: 16px;
}
@media (max-width: 768px) {
    .mobile-app-download {
        display: block;
    }
}

/* The Google Play button: the only app download control. */
.btn-play {
    width: 100%;
    justify-content: center;
    gap: 10px;
    padding: 13px 16px;
    font-size: 15px;
    font-weight: 700;
    border-radius: 10px;
    color: #fff;
    background: linear-gradient(135deg, #01875f, #34a853);
    box-shadow: 0 4px 14px rgba(1, 135, 95, 0.25);
}
.btn-play:hover {
    color: #fff;
    opacity: 0.95;
    transform: translateY(-1px);
}

/* Room for two cards (phone turned sideways, tablet): side by side and the
   same height; the brand card spreads its content over that height. */
@media (min-width: 640px) and (orientation: landscape) {
    .auth-cards.is-mobile {
        max-width: 860px;
        flex-direction: row;
        align-items: stretch;
    }
    .auth-cards.is-mobile > .auth-card {
        flex: 1 1 0;
        min-width: 0;
    }
    .auth-cards.is-mobile > .brand-card {
        justify-content: space-between;
    }
}

/* Phones: the passkey button and, at the bottom, the EN/TR buttons live in
   the brand card; the language buttons are as big as the sign-in button. */
.brand-card {
    display: flex;
    flex-direction: column;
}
.brand-card #btnPasskeyLogin {
    margin-top: 10px;
}
.brand-card .auth-lang-switch.inline {
    position: relative;
    width: 100%;
    margin-top: auto;
    padding-top: 18px;
}
.brand-card .auth-lang-switch.inline .fa-globe {
    left: 16px;
    top: auto;
    bottom: 17px;
    font-size: 16px;
}
.brand-card .auth-lang-switch.inline select {
    width: 100%;
    padding: 13px 40px 13px 44px;
    font-size: 15px;
    border-radius: 10px;
    background-position: right 16px center;
}
body.auth-body:has(.auth-cards.is-mobile) {
    padding-top: 16px;
}

/* Security check: the question and the answer box on one row. */
.captcha-row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.captcha-question {
    flex: 0 0 auto;
    padding: 0 14px;
    height: 46px;
    display: flex;
    align-items: center;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--bg-card);
    color: var(--primary);
    font-size: 17px;
    white-space: nowrap;
}
.captcha-row .form-control {
    flex: 1 1 auto;
    min-width: 0;
}
