/*
 * otosorgu-ui-auth.css: page-group styles of G1 "auth and account entry" (OWL-UI-2).
 * Own file, loaded only by these views through their `@section styles` (Giris, KayitOl, SifremiUnuttum, TelefonDogrulama,
 * SifreDegistir, UcretsizDene/Index), after otosorgu-ui.css. Tokens and components come from otosorgu-ui.css; this file only adds
 * what is specific to the entry pages. Look only: no selector depends on a URL, a form field name/id or a script hook.
 */

/* 1. Card ---------------------------------------------------------------------------------- */
/* Card width is the site structural width (otosorgu-ui.css, OWL-UI-11e); the form block is centred at --ou-form-w. */
@media (min-width: 900px) { .ou-auth__form { max-width: var(--ou-form-w); } }
.ou-auth-card .ou-alert { margin: 0 0 var(--ou-s5); }
.ou-auth__form { display: flex; flex-direction: column; gap: var(--ou-s4); margin: 0; }
/* Spacing comes from the form gap, not from the theme's input/label margins. */
#Content .ou-auth__form input:not([type="checkbox"]), #Content .ou-auth__form .form-in label { margin: 0; }
#Content .ou-auth__form .or { margin: var(--ou-s1) 0; }

/* 2. Row: remember me + forgot password; consent checks -------------------------------------- */
.ou-auth__row { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; column-gap: var(--ou-s4); }
.ou-auth__checks { display: flex; flex-direction: column; gap: var(--ou-s1); }
#Content .ou-auth__link {
    display: inline-flex; align-items: center; min-height: var(--ou-control-h);
    font-size: var(--ou-fs-sm); font-weight: 500; color: var(--ou-ink);
    text-decoration: underline; text-decoration-color: var(--ou-accent); text-decoration-thickness: 2px; text-underline-offset: 3px;
}
#Content .ou-auth__link:hover { text-decoration-color: var(--ou-ink); }
/* 44px touch rows for the custom checkbox: padding sits on the label, so the whole row is the target. */
#Content .ou-auth-card .checkbox-container { align-items: center; }
#Content .ou-auth-card .checkbox-container label { display: inline-block; padding: 10px 0 10px 32px; font-size: var(--ou-fs-label); line-height: 24px; color: var(--ou-ink); }
#Content .ou-auth-card .checkbox-container input[type="checkbox"] + label::before { top: 12px; }
#Content .ou-auth-card .checkbox-container input[type="checkbox"]:checked + label::before { top: 12px; }
#Content .ou-auth-card .checkbox-container input[type="checkbox"]:checked + label::after { top: 10px; }
#Content .ou-auth-card .checkbox-container label a { color: var(--ou-ink); font-weight: 500; }

/* 3. Password eye ---------------------------------------------------------------------------- */
/* The eye is a real button (keyboard + screen reader), 44px high like the field. */
#Content .iconinputs { position: relative; }
#Content .iconinputs .passwordhideshow { padding: 0 52px 0 var(--ou-s3) !important; }
#Content button.togglePassword {
    position: absolute; top: 0; right: 0; transform: none;
    width: var(--ou-control-h); height: var(--ou-control-h); margin: 0; padding: 0;
    display: flex; align-items: center; justify-content: center;
    border: 0; border-radius: 0 var(--ou-r-control) var(--ou-r-control) 0; background: transparent; box-shadow: none;
    color: var(--ou-ink-soft); cursor: pointer; line-height: 1;
}
#Content button.togglePassword:hover { color: var(--ou-ink); background: transparent; }
#Content button.togglePassword:focus-visible { outline: 2px solid var(--ou-ink); outline-offset: -2px; }
#Content button.togglePassword:after { display: none; }
.ou-reveal__icon {
    font-family: "Material Icons Round"; font-size: 22px; font-weight: normal; font-style: normal; line-height: 1; letter-spacing: normal;
    text-transform: none; white-space: nowrap; -webkit-font-feature-settings: 'liga'; font-feature-settings: 'liga';
}

/* 4. Buttons --------------------------------------------------------------------------------- */
/* Secondary (dark) variant on the legacy .button, which the id-scoped base rule would otherwise win. */
#Content .button.ou-btn--secondary { background-color: var(--ou-ink); color: #fff; }
#Content .button.ou-btn--secondary:hover { background-color: #000; color: #fff; }
#Content .button.ou-btn--secondary:focus-visible { outline-color: var(--ou-ink); }
#Content .ou-auth-card .button { margin: 0; }

/* 5. Phone verification ---------------------------------------------------------------------- */
#Content .ou-auth__code { text-align: center; letter-spacing: .3em; font-size: var(--ou-fs-lg); }
#Content .form-result:empty { display: none; }
#Content .form-result .ou-alert { margin: 0 0 var(--ou-s5); }

/* 6. Registration done ------------------------------------------------------------------------ */
.ou-auth-card .ou-state { max-width: none; padding: var(--ou-s2) 0; }
.ou-state--success .ou-state__icon { color: var(--ou-success-ink); }
#Content .ou-auth-card .ou-state__title { font-size: var(--ou-fs-xl); line-height: 1.2; margin: 0; }
.ou-auth-card .ou-state .button { align-self: stretch; }

/* 7. Free trial page (UcretsizDene/Index) ------------------------------------------------------ */
/* Same markup and the same [otosorgubox] hooks as the layout template; the card grid is fluid and the grey text passes AA. */
/* OWL-UI-13b: the grid sits inside a normal page card under the page header, so it has the card's edges (DESIGN.md section 2). */
main section.ou-trial { margin: 0; padding: 0; box-sizing: border-box; }
main section.ou-trial > h3 { margin: 0; color: var(--ou-ink); }
main section.ou-trial > h4 { margin: var(--ou-s2) 0 0; color: var(--ou-ink-soft); font-weight: 400; }
main section.ou-trial > ul {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--ou-s5);
    width: auto; margin: var(--ou-s5) 0 0; padding: 0; list-style: none;
}
main section.ou-trial > ul > li {
    width: auto; height: auto; margin: 0; padding: var(--ou-s5) var(--ou-s4); display: flex;
    border: 1px solid var(--ou-line); border-radius: var(--ou-r-card); box-shadow: var(--ou-shadow);
}
main section.ou-trial > ul > li:hover { border-color: var(--ou-line-strong); box-shadow: 0 2px 4px rgb(0 0 0 / .08), 0 8px 24px rgb(0 0 0 / .08); }
main section.ou-trial > ul > li > div { padding: 0; }
main section.ou-trial > ul > li > div > img { width: 120px; height: 120px; }
main section.ou-trial > ul > li > div > h2 { margin-top: var(--ou-s4); }
main section.ou-trial .ou-trial__cta {
    display: inline-flex; align-items: center; justify-content: center; min-height: var(--ou-control-h); margin-top: var(--ou-s2); padding: 0 var(--ou-s3);
    color: var(--ou-ink); font-size: var(--ou-fs-sm); font-weight: 500;
    text-decoration: underline; text-decoration-color: var(--ou-accent); text-decoration-thickness: 2px; text-underline-offset: 3px;
}
main section.ou-trial .ou-trial__cta:hover { text-decoration-color: var(--ou-ink); }
main section.ou-trial .ou-trial__cta:focus-visible { outline: 2px solid var(--ou-ink); outline-offset: 2px; border-radius: var(--ou-r-control); }
@media (max-width: 639px) {
    main section.ou-trial > ul { grid-template-columns: 1fr; gap: var(--ou-s3); }
    main section.ou-trial > ul > li { padding: var(--ou-s3) var(--ou-s4); }
    main section.ou-trial > ul > li > div { display: grid; grid-template-columns: 64px 1fr; column-gap: var(--ou-s4); align-items: center; width: 100%; text-align: left; }
    main section.ou-trial > ul > li > div > img { grid-row: 1 / span 2; width: 64px; height: 64px; }
    main section.ou-trial > ul > li > div > h2 { margin: 0; align-self: end; }
    main section.ou-trial .ou-trial__cta { justify-self: start; margin: 0; padding: 0; align-self: start; min-height: 32px; }
}
