@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

:root {
    --auth-primary-orange: #f15a24;
    --auth-primary-dark: #aa2307;
    --auth-gradient: linear-gradient(90deg, #f15a24 0%, #aa2307 100%);
    --auth-gradient-hover: linear-gradient(90deg, #fa6d37 0%, #be2d0d 100%);
    --auth-bg-color: #faf5f2;
    --auth-card-radius: 28px;
    --auth-input-radius: 12px;
}

* {
    box-sizing: border-box;
}

body.auth-page {
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--auth-bg-color);
    min-height: 100vh;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

.auth-viewport {
    min-height: 100vh;
    width: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--auth-bg-color);
    background-image: url('../../common/auth_new_3.png');
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
}

/* On desktop, ensure the background covers the viewport cleanly */
@media (min-width: 992px) {
    .auth-viewport {
        background-image: url('../../common/auth_new_3.png');
        background-repeat: no-repeat;
        background-position: center center;
        background-size: cover;
    }
}

.auth-main-container {
    width: 100%;
    max-width: 1440px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 24px 60px 24px 24px;
    position: relative;
    z-index: 2;
}

/* Card Wrapper */
.auth-card-wrapper {
    width: 100%;
    max-width: 440px;
    margin: 0;
}

/* On medium and small screens, center the card and add soft ambient wave backgrounds */
@media (max-width: 991.98px) {
    .auth-viewport {
        background: radial-gradient(circle at 10% 10%, rgba(241, 90, 36, 0.12) 0%, transparent 40%),
                    radial-gradient(circle at 90% 90%, rgba(179, 45, 0, 0.14) 0%, transparent 40%),
                    #faf5f2;
        padding: 30px 16px;
    }
    .auth-main-container {
        justify-content: center;
        padding: 0;
        min-height: auto;
    }
    .auth-card-wrapper {
        margin: 20px auto;
    }
}

/* Floating Card */
.auth-card {
    background: #ffffff;
    border-radius: var(--auth-card-radius);
    box-shadow: 0 24px 50px rgba(170, 35, 7, 0.09), 0 4px 16px rgba(0, 0, 0, 0.04);
    padding: 38px 36px 34px;
    width: 100%;
    position: relative;
    border: 1px solid rgba(245, 235, 225, 0.85);
}

/* Brand Logo */
.auth-logo-box {
    text-align: center;
    margin-bottom: 18px;
}

.auth-brand-logo {
    height: 62px;
    max-width: 240px;
    width: auto;
    object-fit: contain;
    display: inline-block;
}

/* Header Text */
.auth-heading-area {
    text-align: center;
    margin-bottom: 22px;
}

.auth-title-row {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 6px;
    position: relative;
}

.auth-title {
    font-size: 25px;
    font-weight: 800;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: -0.4px;
    line-height: 1.2;
}

.sparkle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.sparkle svg {
    display: block;
}

.auth-subtitle {
    font-size: 13.5px;
    color: #6e6e6e;
    margin: 0;
    font-weight: 400;
}

/* Input Group */
.auth-input-group {
    position: relative;
    margin-bottom: 14px;
}

.auth-input-group .input-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 3;
    color: #9ca3af;
}

.auth-input-group .left-icon {
    left: 16px;
    pointer-events: none;
}

.auth-input-group .right-icon {
    right: 14px;
    background: none;
    border: none;
    padding: 4px;
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.2s;
}

.auth-input-group .right-icon:hover {
    color: var(--auth-primary-orange);
}

.auth-input {
    width: 100%;
    height: 48px;
    background: #fbfbfb;
    border: 1.5px solid #e7e5e4;
    border-radius: var(--auth-input-radius);
    padding: 12px 16px 12px 46px;
    font-size: 14.5px;
    font-weight: 500;
    color: #1f2937;
    transition: all 0.2s ease;
    outline: none;
    box-shadow: none;
}

.auth-input.has-toggle {
    padding-right: 44px;
}

.auth-input::placeholder {
    color: #a8a29e;
    font-weight: 400;
}

.auth-input:focus {
    background: #ffffff;
    border-color: #ea580c;
    box-shadow: 0 0 0 3.5px rgba(234, 88, 12, 0.12);
}

/* Forgot Password Link */
.auth-forgot-link {
    font-size: 13px;
    font-weight: 500;
    color: #b91c1c;
    text-decoration: underline;
    transition: color 0.15s ease;
}

.auth-forgot-link:hover {
    color: #ea580c;
}

/* Submit Button */
.btn-auth-login {
    background: var(--auth-gradient);
    color: #ffffff !important;
    font-weight: 700;
    font-size: 15.5px;
    height: 48px;
    border-radius: var(--auth-input-radius);
    border: none;
    box-shadow: 0 4px 14px rgba(234, 88, 12, 0.28);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
}

.btn-auth-login:hover {
    background: var(--auth-gradient-hover);
    box-shadow: 0 6px 20px rgba(185, 28, 28, 0.35);
    transform: translateY(-1px);
}

.btn-auth-login:active {
    transform: translateY(0);
}

/* Divider */
.auth-divider {
    display: flex;
    align-items: center;
    text-align: center;
    color: #78716c;
    font-size: 13px;
    margin: 22px 0 16px;
    font-weight: 400;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid #e7e5e4;
}

.auth-divider::before {
    margin-right: 12px;
}

.auth-divider::after {
    margin-left: 12px;
}

/* Create Account Button */
.btn-auth-create {
    background: #ffffff;
    color: #aa2307 !important;
    border: 1.5px solid #aa2307;
    border-radius: var(--auth-input-radius);
    font-weight: 600;
    font-size: 14.5px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
}

.btn-auth-create:hover {
    background: #fff6f2;
    color: #881b03 !important;
    border-color: #881b03;
}

/* Alerts inside card */
.auth-card .alert {
    border-radius: 10px;
    font-size: 13.5px;
    margin-bottom: 18px;
}
