/**
 * Kayıt ol — ortalanmış glass kart (giriş sayfası ile uyumlu)
 */

.auth-register-page {
    padding: 8px 0 48px;
    box-sizing: border-box;
}

.auth-register-page__inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.auth-register-card {
    position: relative;
    width: 100%;
    max-width: 100%;
    padding: 32px 26px 28px;
    box-sizing: border-box;
    border-radius: 24px;
    overflow: hidden;
    color: #f4f8fc;
    background: linear-gradient(
        155deg,
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.03) 42%,
        rgba(1, 177, 175, 0.05) 100%
    );
    backdrop-filter: blur(24px) saturate(1.65);
    -webkit-backdrop-filter: blur(24px) saturate(1.65);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.18),
        inset 0 -1px 0 rgba(0, 0, 0, 0.15),
        0 24px 56px rgba(0, 0, 0, 0.42),
        0 0 48px rgba(1, 177, 175, 0.08);
    animation: auth-register-in 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.auth-register-card__eyebrow {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    margin: 0 0 12px;
}

.auth-register-card__eyebrow span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #2dd4d2;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(1, 177, 175, 0.28);
    border-radius: 100px;
}

.auth-register-card__title {
    position: relative;
    z-index: 1;
    margin: 0 0 22px;
    font-size: clamp(1.35rem, 5vw, 1.65rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
    color: #fafcfe;
}

.auth-register-form {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px 12px;
    width: 100%;
    min-width: 0;
}

.auth-register-form .form-group,
.auth-register-form > div {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
    margin: 0;
}

.auth-register-form .form-group--full,
.auth-register-form .form-submit,
.auth-register-form .auth-register-form__actions {
    grid-column: 1 / -1;
}

.auth-register-form label {
    font-size: 0.78rem;
    font-weight: 500;
    color: rgba(232, 238, 242, 0.92);
    margin: 0;
}

.auth-field,
.auth-register-form input[type="text"],
.auth-register-form input[type="email"],
.auth-register-form input[type="password"] {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 12px 14px !important;
    font-size: 16px !important;
    font-family: inherit;
    color: #fff !important;
    background: rgba(0, 0, 0, 0.22) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 12px !important;
    outline: none;
    transition:
        border-color 0.25s ease,
        box-shadow 0.25s ease;
    -webkit-appearance: none;
    appearance: none;
}

.auth-field:focus,
.auth-register-form input:focus {
    border-color: rgba(0, 236, 233, 0.55) !important;
    box-shadow: 0 0 0 3px rgba(1, 177, 175, 0.18);
}

.auth-register-form .helptext {
    font-size: 0.72rem;
    color: rgba(184, 200, 216, 0.8);
    margin: 2px 0 0;
    line-height: 1.35;
}

.auth-register-form .helptext ul {
    margin: 4px 0 0;
    padding-left: 1.15em;
}

.auth-register-form .form-group ul.errorlist {
    margin: 4px 0 0;
    padding: 0;
    list-style: none;
    font-size: 0.78rem;
    color: #ffb4ab;
}

.auth-register-form .errorlist,
.auth-register-form .non-field-errors,
.auth-register-card__errors {
    grid-column: 1 / -1;
    margin: 0;
    padding: 10px 12px;
    list-style: none;
    font-size: 0.82rem;
    color: #ffb4ab;
    background: rgba(255, 80, 80, 0.1);
    border: 1px solid rgba(255, 120, 120, 0.22);
    border-radius: 10px;
}

.auth-register-form .errorlist li {
    margin: 0;
}

.auth-register-form__submit {
    width: 100%;
    padding: 14px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: #021014;
    border: none;
    border-radius: 14px;
    cursor: pointer;
    background: linear-gradient(135deg, #7af8f6 0%, #00ece9 42%, #01b1af 100%);
    box-shadow:
        0 10px 28px rgba(1, 177, 175, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.35);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.auth-register-form__submit:hover {
    box-shadow:
        0 14px 36px rgba(1, 177, 175, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.auth-register-form__submit:active {
    transform: scale(0.98);
}

.auth-register-divider {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 14px;
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: rgba(184, 200, 216, 0.75);
}

.auth-register-divider::before,
.auth-register-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
}

.auth-register-google {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: center;
    margin-bottom: 4px;
}

.auth-register-google__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 18px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #1f2937;
    text-decoration: none !important;
    background: #fff;
    border-radius: 14px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s ease, filter 0.2s ease;
    box-sizing: border-box;
}

.auth-register-google__btn:hover {
    filter: brightness(0.97);
}

.auth-register-footer {
    position: relative;
    z-index: 1;
    margin: 14px 0 0;
    text-align: center;
    font-size: 0.88rem;
    color: rgba(196, 210, 224, 0.88);
}

.auth-register-footer a {
    color: #00ece9;
    font-weight: 500;
    text-decoration: none;
}

.auth-register-footer a:hover {
    text-decoration: underline;
}

@keyframes auth-register-in {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 991px) {
    .auth-register-card {
        padding: 24px 18px 22px;
        border-radius: 18px;
    }

    .auth-register-form {
        grid-template-columns: 1fr;
    }

    .auth-register-form .form-group--full,
    .auth-register-form .form-submit,
    .auth-register-form .auth-register-form__actions {
        grid-column: 1;
    }
}

body.light-mode .auth-register-card {
    color: #0f172a;
    background: linear-gradient(
        155deg,
        rgba(255, 255, 255, 0.98) 0%,
        rgba(248, 250, 252, 0.96) 100%
    );
    border-color: rgba(1, 177, 175, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.95),
        0 12px 36px rgba(15, 23, 42, 0.08);
}

body.light-mode .auth-register-card__eyebrow span {
    color: #018a88 !important;
    background: rgba(1, 177, 175, 0.1);
    border-color: rgba(1, 138, 136, 0.28);
}

body.light-mode .auth-register-card__title {
    color: #0f172a !important;
}

body.light-mode .auth-register-form label {
    color: #334155 !important;
}

body.light-mode .auth-field,
body.light-mode .auth-register-form input[type="text"],
body.light-mode .auth-register-form input[type="email"],
body.light-mode .auth-register-form input[type="password"] {
    color: #0f172a !important;
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
}

body.light-mode .auth-register-form input::placeholder {
    color: #94a3b8 !important;
}

body.light-mode .auth-register-form .helptext {
    color: #64748b !important;
}

body.light-mode .auth-register-divider {
    color: #64748b !important;
}

body.light-mode .auth-register-divider::before,
body.light-mode .auth-register-divider::after {
    background: linear-gradient(
        90deg,
        transparent,
        rgba(15, 23, 42, 0.12),
        transparent
    );
}

body.light-mode .auth-register-footer {
    color: #475569 !important;
}

body.light-mode .auth-register-footer a {
    color: #018a88 !important;
}

body.light-mode .auth-register-form .form-group ul.errorlist,
body.light-mode .auth-register-form .errorlist,
body.light-mode .auth-register-card__errors {
    color: #b91c1c !important;
    background: rgba(220, 80, 80, 0.08);
    border-color: rgba(220, 80, 80, 0.22);
}
