/* Split-screen login/register/forgot-password/reset-password shell
   (partials/auth-shell-open.blade.php + auth-shell-close.blade.php). */
.gem-auth {
    min-height: calc(100vh - 76px);
    display: flex;
    flex-wrap: wrap;
    background: #ffffff;
}

.gem-auth__hero {
    position: relative;
    flex: 1 1 50%;
    min-width: 320px;
    padding: 72px 64px;
    display: flex;
    align-items: center;
    background:
        radial-gradient(circle at 15% 20%, rgba(224, 166, 62, 0.18), transparent 45%),
        linear-gradient(150deg, #14151a 0%, #1e2027 45%, #262013 100%);
    overflow: hidden;
}

.gem-auth__hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
    background-size: 48px 48px;
    pointer-events: none;
}

.gem-auth__hero-content {
    position: relative;
    z-index: 1;
    max-width: 480px;
}

.gem-auth__rule {
    display: block;
    width: 56px;
    height: 4px;
    border-radius: 2px;
    background: #e0a63e;
    margin-bottom: 24px;
}

.gem-auth__heading {
    color: #ffffff;
    font-size: 40px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0 0 20px;
}

.gem-auth__heading span {
    color: #e0a63e;
    display: block;
}

.gem-auth__description {
    color: rgba(255, 255, 255, 0.72);
    font-size: 16px;
    line-height: 1.7;
    margin: 0 0 40px;
}

.gem-auth__features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gem-auth__features li {
    display: flex;
    align-items: center;
    gap: 16px;
}

.gem-auth__feature-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(224, 166, 62, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e0a63e;
}

.gem-auth__feature-icon svg {
    width: 20px;
    height: 20px;
}

.gem-auth__features strong {
    display: block;
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
}

.gem-auth__features small {
    display: block;
    color: rgba(255, 255, 255, 0.6);
    font-size: 13px;
    margin-top: 2px;
}

.gem-auth__panel {
    flex: 1 1 50%;
    min-width: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 56px 32px;
    background: #f4f2ee;
}

.gem-auth__card {
    width: 100%;
    max-width: 480px;
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 24px 60px rgba(20, 20, 25, 0.12);
    padding: 44px 36px;
}

.gem-auth__brand {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.gem-auth__brand img {
    height: 46px;
}

.gem-auth__card-title {
    text-align: center;
    font-size: 24px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0 0 8px;
}

.gem-auth__card-subtitle {
    text-align: center;
    color: #767676;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 28px;
}

/* Form controls inside the card */
.gem-auth__card .form-group {
    margin-bottom: 18px;
}

.gem-auth__field {
    position: relative;
}

.gem-auth__field .form-control {
    height: 52px;
    padding-left: 46px;
    padding-right: 16px;
    border-radius: 10px;
    border: 1px solid #e3e0da;
    background: #faf9f7;
    font-size: 14px;
}

.gem-auth__field .form-control:focus {
    border-color: #e0a63e;
    background: #ffffff;
    box-shadow: 0 0 0 3px rgba(224, 166, 62, 0.15);
}

.gem-auth__field-icon {
    position: absolute;
    top: 50%;
    left: 16px;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    color: #9a9a9a;
    pointer-events: none;
}

.gem-auth__field-toggle {
    position: absolute;
    top: 50%;
    right: 14px;
    transform: translateY(-50%);
    background: transparent;
    border: 0;
    padding: 4px;
    color: #9a9a9a;
    cursor: pointer;
}

.gem-auth__field-toggle svg {
    width: 18px;
    height: 18px;
    display: block;
}

.gem-auth__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 22px;
    font-size: 13px;
}

.gem-auth__remember {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #4a4a4a;
    cursor: pointer;
}

.gem-auth__remember input {
    width: 16px;
    height: 16px;
    accent-color: #e0a63e;
    cursor: pointer;
}

.gem-auth__link {
    color: #e0a63e;
    font-weight: 700;
    text-decoration: none;
}

.gem-auth__link:hover {
    color: #c98f2f;
    text-decoration: underline;
}

.gem-auth__submit {
    width: 100%;
    height: 52px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #e0a63e, #c9852a);
    color: #ffffff;
    font-size: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

.gem-auth__submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(201, 133, 42, 0.35);
    color: #ffffff;
}

.gem-auth__submit svg {
    width: 16px;
    height: 16px;
}

.gem-auth__divider {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #9a9a9a;
    font-size: 12px;
    margin: 24px 0;
}

.gem-auth__divider::before,
.gem-auth__divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e6e2da;
}

.gem-auth__social {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.gem-auth__social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 46px;
    padding: 6px 8px;
    border-radius: 10px;
    font-size: 12.5px;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
}

.gem-auth__social-btn.is-disabled {
    cursor: not-allowed;
    opacity: 0.65;
}

.gem-auth__social-btn svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.gem-auth__social-btn--google {
    background: #ffffff;
    border: 1px solid #e3e0da;
    color: #333333;
}

.gem-auth__social-btn--facebook {
    background: #1877f2;
    border: 1px solid #1877f2;
    color: #ffffff;
}

.gem-auth__footer-link {
    text-align: center;
    font-size: 13px;
    color: #767676;
    margin: 24px 0 0;
}

.gem-auth__card .invalid-feedback,
.gem-auth__card .invalid-error {
    display: block;
    color: #d64545;
    font-size: 12px;
    margin-top: 6px;
}

.gem-auth__card .alert {
    border-radius: 10px;
    font-size: 13px;
}

.gem-auth__two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.gem-auth__terms {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #4a4a4a;
    margin-bottom: 20px;
}

.gem-auth__terms input {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    accent-color: #e0a63e;
    flex-shrink: 0;
}

.gem-auth__terms span[data-toggle="modal"] {
    color: #e0a63e;
    cursor: pointer;
    font-weight: 600;
}

@media (max-width: 991px) {
    .gem-auth {
        min-height: 0;
    }

    .gem-auth__hero {
        padding: 48px 32px;
    }

    .gem-auth__heading {
        font-size: 30px;
    }

    .gem-auth__card {
        padding: 32px 24px;
    }

    .gem-auth__two-col {
        grid-template-columns: 1fr;
    }
}
