/**
 * Giriş, kayıt, şifre sıfırlama — ortak stiller + mobil
 */

.saas-auth-wrap {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px 0 40px;
    position: relative;
    overflow: hidden;
}

.saas-auth-wrap .container {
    width: 100%;
    max-width: 100%;
    padding-left: 16px;
    padding-right: 16px;
}

.saas-mesh-gradient {
    position: absolute;
    inset: -20%;
    z-index: 0;
    background:
        radial-gradient(at 0% 0%, rgba(var(--brand-primary-rgb, 249, 115, 22), 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(168, 85, 247, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(var(--brand-primary-rgb, 249, 115, 22), 0.10) 0px, transparent 50%),
        radial-gradient(at 0% 100%, rgba(168, 85, 247, 0.10) 0px, transparent 50%);
    filter: blur(80px);
    transform: translate3d(0, 0, 0);
    pointer-events: none;
}

.saas-glass-card {
    position: relative;
    z-index: 1;
    max-width: 460px;
    width: 100%;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 25px 50px -12px rgba(var(--brand-primary-rgb, 249, 115, 22), 0.08);
    padding: 36px;
}

.saas-glass-card--wide {
    max-width: 560px;
}

.saas-auth-badge {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--brand-primary, #f97316);
    color: #fff;
    box-shadow: 0 10px 30px rgba(var(--brand-primary-rgb, 249, 115, 22), 0.18);
    margin-bottom: 18px;
    font-size: 22px;
}

.saas-auth-title {
    font-size: clamp(1.65rem, 5vw, 2.125rem);
    line-height: 1.2;
    margin-bottom: 8px;
    color: #0b1c30;
}

.saas-auth-desc {
    margin: 0 auto 22px;
    color: #584237;
    max-width: 460px;
    font-size: clamp(14px, 3.2vw, 15px);
    line-height: 1.55;
}

.saas-field {
    margin-bottom: 16px;
}

.saas-label {
    display: block;
    font-weight: 600;
    color: #0b1c30;
    margin: 0 0 8px 6px;
    font-size: clamp(14px, 3vw, 15px);
}

.saas-input-wrap {
    position: relative;
    display: flex;
    align-items: center;
    border: 1px solid rgba(224, 192, 177, 1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.55);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    min-height: 48px;
}

.saas-input-wrap:focus-within {
    border-color: var(--brand-primary, #f97316);
    box-shadow: 0 0 0 4px rgba(var(--brand-primary-rgb, 249, 115, 22), 0.12);
}

.saas-input-icon {
    position: absolute;
    left: 16px;
    color: #584237;
    opacity: 0.9;
    z-index: 1;
    pointer-events: none;
}

.saas-input {
    width: 100%;
    border: none !important;
    outline: none !important;
    background: transparent !important;
    padding: 14px 14px 14px 46px !important;
    color: #0b1c30 !important;
    font-size: 16px !important;
    line-height: 1.4;
    min-height: 48px;
    box-shadow: none !important;
}

.saas-input::placeholder {
    color: rgba(88, 66, 55, 0.55);
}

.saas-input--password {
    padding-right: 52px !important;
}

.saas-input-wrap select.saas-input {
    appearance: auto;
    cursor: pointer;
    padding-right: 28px !important;
}

.saas-toggle-pass {
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: rgba(88, 66, 55, 0.75);
    min-width: 44px;
    min-height: 44px;
    padding: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.saas-toggle-pass:hover {
    color: var(--brand-primary, #f97316);
}

.saas-auth-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 10px 0 18px;
    font-size: clamp(13px, 3vw, 14px);
    flex-wrap: wrap;
}

.saas-auth-link {
    color: var(--brand-primary, #f97316);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.saas-auth-link:hover {
    color: var(--brand-primary-hover, #ea580c);
}

.saas-btn {
    width: 100%;
    border: none;
    border-radius: 16px;
    padding: 14px 16px;
    min-height: 48px;
    font-weight: 800;
    font-size: 16px;
    color: #fff;
    background: var(--brand-primary, #f97316);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.25s ease;
}

.saas-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, var(--brand-primary, #f97316) 0%, #a855f7 100%);
    opacity: 0;
    transition: opacity 0.35s ease;
}

.saas-btn > span {
    position: relative;
    z-index: 1;
}

.saas-btn:hover::before {
    opacity: 1;
}

.saas-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 20px -5px rgba(var(--brand-primary-rgb, 249, 115, 22), 0.30);
}

.saas-bottom {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid rgba(224, 192, 177, 0.35);
    text-align: center;
    color: rgba(88, 66, 55, 0.95);
    font-size: clamp(14px, 3.2vw, 15px);
    line-height: 1.5;
}

.saas-bottom a {
    color: var(--brand-secondary, #7c3aed);
    font-weight: 800;
    text-decoration: none;
}

.saas-bottom a:hover {
    color: var(--brand-primary, #f97316);
}

.saas-checkline {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px dashed rgba(224, 192, 177, 0.9);
    background: rgba(255, 255, 255, 0.5);
    font-size: clamp(14px, 3.2vw, 15px);
    line-height: 1.45;
    cursor: pointer;
}

.saas-checkline input[type='checkbox'] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    cursor: pointer;
}

.saas-auth-wrap .alert {
    font-size: 14px;
    line-height: 1.45;
}

.saas-auth-wrap .alert ul {
    padding-left: 1.1rem;
}

/* ── Mobil ─────────────────────────────────────── */
@media (max-width: 767.98px) {
    .saas-auth-wrap {
        align-items: flex-start;
        min-height: auto;
        padding: 16px 0 32px;
    }

    .saas-glass-card {
        padding: 24px 18px;
        border-radius: 20px;
        max-width: 100%;
    }

    .saas-auth-meta {
        flex-direction: column;
        align-items: flex-start;
    }

    .saas-auth-link {
        white-space: normal;
    }

    #become-instructor-fields .saas-field {
        margin-bottom: 14px;
    }
}

@media (max-width: 380px) {
    .saas-glass-card {
        padding: 20px 14px;
    }

    .saas-auth-badge {
        width: 48px;
        height: 48px;
        font-size: 20px;
    }
}
