/* =========================================================
   BUILDROERP PREMIUM LOGIN
   Sadece body.auth-page altında çalışır
   ========================================================= */

body.auth-page {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    color: #f8fafc;
    background:
        radial-gradient(circle at 12% 18%, rgba(37, 99, 235, .22), transparent 34%),
        radial-gradient(circle at 86% 78%, rgba(124, 58, 237, .20), transparent 34%),
        linear-gradient(135deg, #050b18 0%, #0b1222 48%, #15102b 100%);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
}

body.auth-page::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .28;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 44px 44px;
}

body.auth-page > main {
    min-height: 100vh;
}

.auth-page .auth-shell {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(420px, .95fr);
    min-height: 100vh;
}

/* SOL ALAN */

.auth-page .auth-visual {
    position: relative;
    display: flex;
    min-height: 100vh;
    overflow: hidden;
    padding: 52px clamp(38px, 5vw, 86px);
    background:
        linear-gradient(180deg, rgba(6, 13, 29, .35), rgba(4, 10, 23, .86)),
        radial-gradient(circle at 50% 42%, rgba(37, 99, 235, .18), transparent 48%);
}

.auth-page .auth-visual::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 42%;
    pointer-events: none;
    background:
        linear-gradient(to top, rgba(4, 10, 23, .92), transparent),
        repeating-linear-gradient(
            90deg,
            rgba(96, 165, 250, .10) 0 2px,
            transparent 2px 45px
        );
    clip-path: polygon(
        0 70%, 5% 56%, 10% 68%, 15% 38%, 22% 58%,
        28% 30%, 35% 62%, 42% 35%, 49% 67%, 56% 42%,
        63% 61%, 70% 24%, 77% 55%, 84% 33%, 91% 62%,
        100% 40%, 100% 100%, 0 100%
    );
}

.auth-page .auth-visual-pattern {
    position: absolute;
    inset: 0;
    opacity: .35;
    background:
        linear-gradient(115deg, transparent 35%, rgba(255,255,255,.035) 50%, transparent 65%);
}

.auth-page .auth-visual-glow {
    position: absolute;
    width: 390px;
    height: 390px;
    border-radius: 50%;
    filter: blur(110px);
    opacity: .26;
}

.auth-page .auth-visual-glow-one {
    top: 4%;
    left: -120px;
    background: #2563eb;
}

.auth-page .auth-visual-glow-two {
    right: -100px;
    bottom: 5%;
    background: #7c3aed;
}

.auth-page .auth-visual-content {
    position: relative;
    z-index: 2;
    display: flex;
    width: 100%;
    flex-direction: column;
}

.auth-page .auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    width: fit-content;
    color: #fff;
    text-decoration: none;
}

.auth-page .auth-brand-logo {
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    padding: 7px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, .24);
    border-radius: 18px;
    background: rgba(15, 23, 42, .64);
    box-shadow:
        0 16px 45px rgba(0, 0, 0, .28),
        inset 0 1px 0 rgba(255,255,255,.08);
}

.auth-page .auth-brand-logo img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.auth-page .auth-brand-fallback {
    display: none;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    background: linear-gradient(135deg, #2563eb, #7c3aed);
    color: #fff;
    font-size: 28px;
    font-weight: 900;
}

.auth-page .auth-brand-name {
    font-size: 24px;
    font-weight: 850;
    letter-spacing: -.02em;
}

.auth-page .auth-brand-description {
    margin-top: 3px;
    color: #94a3b8;
    font-size: 13px;
    letter-spacing: .02em;
}

.auth-page .auth-hero {
    max-width: 660px;
    margin: auto 0;
    padding: 72px 0 52px;
}

.auth-page .auth-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 14px;
    margin-bottom: 23px;
    border: 1px solid rgba(96, 165, 250, .26);
    border-radius: 999px;
    color: #bfdbfe;
    background: rgba(37, 99, 235, .12);
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(12px);
}

.auth-page .auth-hero h1 {
    max-width: 650px;
    margin: 0;
    color: #f8fafc;
    font-size: clamp(42px, 5vw, 76px);
    line-height: .98;
    font-weight: 900;
    letter-spacing: -.055em;
    text-shadow: 0 18px 60px rgba(0,0,0,.28);
}

.auth-page .auth-hero > p {
    max-width: 610px;
    margin: 27px 0 0;
    color: #b6c2d5;
    font-size: clamp(16px, 1.25vw, 20px);
    line-height: 1.75;
}

.auth-page .auth-feature-list {
    display: grid;
    gap: 14px;
    margin-top: 40px;
}

.auth-page .auth-feature {
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 570px;
    padding: 15px 17px;
    border: 1px solid rgba(148, 163, 184, .12);
    border-radius: 18px;
    background: rgba(15, 23, 42, .36);
    backdrop-filter: blur(12px);
    transition: transform .2s ease, border-color .2s ease;
}

.auth-page .auth-feature:hover {
    transform: translateX(5px);
    border-color: rgba(96, 165, 250, .30);
}

.auth-page .auth-feature-icon {
    display: grid;
    place-items: center;
    flex: 0 0 43px;
    width: 43px;
    height: 43px;
    border-radius: 14px;
    color: #93c5fd;
    background: linear-gradient(135deg, rgba(37,99,235,.25), rgba(124,58,237,.22));
    font-size: 18px;
}

.auth-page .auth-feature strong {
    display: block;
    color: #f8fafc;
    font-size: 14px;
    font-weight: 800;
}

.auth-page .auth-feature span {
    display: block;
    margin-top: 3px;
    color: #94a3b8;
    font-size: 12.5px;
    line-height: 1.45;
}

.auth-page .auth-visual-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
    color: #7f8da3;
    font-size: 12px;
}

.auth-page .auth-visual-footer span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

/* SAĞ FORM ALANI */

.auth-page .auth-form-area {
    display: grid;
    place-items: center;
    min-height: 100vh;
    padding: 42px clamp(28px, 5vw, 82px);
    background: rgba(4, 10, 23, .34);
    backdrop-filter: blur(28px);
}

.auth-page .auth-form-container {
    width: min(100%, 520px);
    padding: clamp(30px, 4vw, 52px);
    border: 1px solid rgba(148, 163, 184, .16);
    border-radius: 30px;
    background:
        linear-gradient(145deg, rgba(17, 24, 39, .91), rgba(9, 15, 29, .89));
    box-shadow:
        0 30px 100px rgba(0, 0, 0, .52),
        inset 0 1px 0 rgba(255,255,255,.055);
    backdrop-filter: blur(26px);
}

.auth-page .auth-mobile-brand {
    display: none;
}

.auth-page .auth-form-eyebrow {
    margin-bottom: 10px;
    color: #8b9ab0;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.auth-page .auth-form-heading h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(30px, 3vw, 43px);
    line-height: 1.08;
    font-weight: 900;
    letter-spacing: -.045em;
}

.auth-page .auth-form-heading p {
    margin: 14px 0 0;
    color: #8f9db2;
    font-size: 14px;
    line-height: 1.65;
}

.auth-page .auth-alert-list {
    display: grid;
    gap: 10px;
    margin-top: 22px;
}

.auth-page .auth-alert {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 13px 14px;
    border: 1px solid rgba(96,165,250,.22);
    border-radius: 14px;
    color: #dbeafe;
    background: rgba(37,99,235,.12);
    font-size: 13px;
}

.auth-page .auth-alert-danger {
    border-color: rgba(248,113,113,.28);
    color: #fecaca;
    background: rgba(127,29,29,.22);
}

.auth-page .auth-form {
    display: grid;
    gap: 21px;
    margin-top: 32px;
}

.auth-page .auth-field {
    display: grid;
    gap: 9px;
}

.auth-page .auth-field label,
.auth-page .auth-label-row label {
    margin: 0;
    color: #cbd5e1;
    font-size: 13px;
    font-weight: 750;
}

.auth-page .auth-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auth-page .auth-input-group {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 56px;
    overflow: hidden;
    border: 1px solid rgba(148, 163, 184, .17);
    border-radius: 15px;
    background: rgba(2, 6, 23, .55);
    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.auth-page .auth-input-group:focus-within {
    border-color: rgba(96, 165, 250, .72);
    background: rgba(2, 6, 23, .78);
    box-shadow:
        0 0 0 4px rgba(37, 99, 235, .12),
        0 12px 34px rgba(37, 99, 235, .09);
}

.auth-page .auth-input-icon {
    display: grid;
    place-items: center;
    width: 52px;
    flex: 0 0 52px;
    color: #7f8da3;
    font-size: 17px;
}

.auth-page .auth-input {
    width: 100%;
    min-width: 0;
    height: 54px;
    padding: 0 16px 0 0;
    border: 0 !important;
    outline: 0 !important;
    color: #f8fafc !important;
    background: transparent !important;
    box-shadow: none !important;
    font-size: 14px;
}

.auth-page .auth-input::placeholder {
    color: #59677c;
}

.auth-page .auth-password-toggle {
    display: grid;
    place-items: center;
    flex: 0 0 48px;
    width: 48px;
    height: 54px;
    border: 0;
    color: #8290a5;
    background: transparent;
    cursor: pointer;
    transition: color .2s ease;
}

.auth-page .auth-password-toggle:hover {
    color: #bfdbfe;
}

.auth-page .auth-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    width: 100%;
    min-height: 56px;
    margin-top: 4px;
    border: 0;
    border-radius: 15px;
    color: #fff;
    background: linear-gradient(100deg, #2563eb 0%, #4f46e5 52%, #7c3aed 100%);
    box-shadow:
        0 18px 42px rgba(37, 99, 235, .28),
        inset 0 1px 0 rgba(255,255,255,.24);
    font-size: 14px;
    font-weight: 850;
    cursor: pointer;
    transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
}

.auth-page .auth-submit:hover {
    transform: translateY(-2px);
    filter: brightness(1.08);
    box-shadow:
        0 22px 48px rgba(79, 70, 229, .36),
        inset 0 1px 0 rgba(255,255,255,.28);
}

.auth-page .auth-submit:active {
    transform: translateY(0);
}

.auth-page .auth-help {
    display: flex;
    align-items: center;
    gap: 13px;
    margin-top: 28px;
    padding: 15px;
    border: 1px solid rgba(148, 163, 184, .10);
    border-radius: 15px;
    background: rgba(15, 23, 42, .38);
}

.auth-page .auth-help-icon {
    display: grid;
    place-items: center;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: #93c5fd;
    background: rgba(37, 99, 235, .14);
}

.auth-page .auth-help strong {
    display: block;
    color: #cbd5e1;
    font-size: 12.5px;
}

.auth-page .auth-help span {
    display: block;
    margin-top: 2px;
    color: #64748b;
    font-size: 11.5px;
}

.auth-page .auth-copyright {
    margin-top: 25px;
    color: #536176;
    font-size: 11px;
    text-align: center;
}

/* Mobil */

@media (max-width: 1050px) {
    .auth-page .auth-shell {
        grid-template-columns: minmax(0, .9fr) minmax(400px, 1.1fr);
    }

    .auth-page .auth-feature-list {
        display: none;
    }

    .auth-page .auth-hero h1 {
        font-size: 48px;
    }
}

@media (max-width: 820px) {
    body.auth-page {
        overflow-y: auto;
    }

    .auth-page .auth-shell {
        display: block;
        min-height: 100vh;
    }

    .auth-page .auth-visual {
        display: none;
    }

    .auth-page .auth-form-area {
        min-height: 100vh;
        padding: 24px 16px;
    }

    .auth-page .auth-form-container {
        padding: 28px 22px;
        border-radius: 24px;
    }

    .auth-page .auth-mobile-brand {
        display: flex;
        align-items: center;
        gap: 12px;
        margin-bottom: 34px;
    }

    .auth-page .auth-mobile-logo {
        display: grid;
        place-items: center;
        width: 45px;
        height: 45px;
        border-radius: 13px;
        color: #fff;
        background: linear-gradient(135deg, #2563eb, #7c3aed);
        font-weight: 900;
    }

    .auth-page .auth-mobile-brand strong,
    .auth-page .auth-mobile-brand span {
        display: block;
    }

    .auth-page .auth-mobile-brand strong {
        color: #fff;
        font-size: 15px;
    }

    .auth-page .auth-mobile-brand span {
        color: #64748b;
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .auth-page .auth-form-area {
        padding: 0;
    }

    .auth-page .auth-form-container {
        min-height: 100vh;
        border: 0;
        border-radius: 0;
        padding: 26px 20px;
        background: rgba(5, 11, 24, .91);
    }
}
