:root {
    --signup-primary: #00a758;
    --signup-primary-hover: #008f4c;
    --signup-border: #d1d5db;
}

body.auth-page {
    min-height: 100vh;
    margin: 0;
    padding: 30px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow-x: hidden;
    background: #071d2d url("../images/signup-background.png") center / cover fixed no-repeat;
    font-family: "Inter", sans-serif;
}

body.auth-page::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    background: rgba(5, 24, 38, 0.42);
}

body.auth-page .site-header,
body.auth-page .site-footer,
body.auth-page .mobile-menu-overlay {
    display: none !important;
}

body.auth-page #wrapwrap {
    min-height: 100vh;
}

.naccima-signup-page {
    min-height: calc(100vh - 60px);
}

.auth-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 520px;
    padding: 24px 16px;
    margin: auto;
}

.auth-card {
    padding: 40px 44px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
    text-align: center;
}

.auth-top-bar {
    width: 100%;
    margin-bottom: 24px;
}

.auth-brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.auth-brand img {
    width: auto;
    height: 44px;
    object-fit: contain;
}

.auth-brand-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.auth-brand-name {
    color: #121212;
    font-size: 14px;
    font-weight: 700;
}

.auth-brand-sub {
    color: #555;
    font-size: 12px;
}

.auth-title {
    margin: 0 0 8px;
    color: #121212;
    font-size: 26px;
    font-weight: 700;
}

.auth-subtitle {
    margin: 0 0 28px;
    color: #555;
    font-size: 14px;
    line-height: 1.5;
}

.auth-form {
    text-align: left;
}

.form-group-custom {
    margin-bottom: 16px;
}

.password-group {
    margin-bottom: 20px;
}

.auth-label {
    display: block;
    margin-bottom: 6px;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
}

.required-star {
    margin-left: 2px;
    color: #ef4444;
}

.password-field {
    position: relative;
}

.auth-input {
    box-sizing: border-box;
    width: 100%;
    height: 48px;
    padding: 10px 14px;
    border: 1px solid var(--signup-border);
    border-radius: 8px;
    background: #fff;
    color: #1f2937;
    font-size: 14px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.password-field .auth-input {
    padding-right: 46px;
}

.auth-input:focus {
    border-color: var(--signup-primary);
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 167, 88, 0.15);
}

.auth-input::placeholder {
    color: #9ca3af;
}

.auth-input-hint {
    display: block;
    margin-top: 4px;
    color: #6b7280;
    font-size: 12px;
}

.password-toggle {
    position: absolute;
    top: 50%;
    right: 12px;
    padding: 4px;
    transform: translateY(-50%);
    border: 0;
    background: transparent;
    color: #6b7280;
    cursor: pointer;
}

.password-toggle:hover {
    color: #374151;
}

.btn-auth-primary {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 8px;
    background: var(--signup-primary);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease;
}

.btn-auth-primary:hover {
    background: var(--signup-primary-hover);
}

.signup-status {
    margin: 14px 0 0;
    padding: 10px 12px;
    border: 1px solid #f3d79a;
    border-radius: 8px;
    background: #fff8e6;
    color: #6e4b00;
    font-size: 13px;
    line-height: 1.45;
}

.auth-footer-text,
.auth-bottom-link {
    text-align: center;
}

.auth-footer-text {
    margin-top: 18px;
    color: #4b5563;
    font-size: 13.5px;
}

.auth-bottom-link {
    margin-top: 24px;
    padding-top: 8px;
}

.auth-green-link {
    color: var(--signup-primary);
    font-size: 13.5px;
    font-weight: 600;
    text-decoration: none;
}

.auth-green-link:hover {
    color: var(--signup-primary-hover);
    text-decoration: underline;
}

.btn-back-website {
    position: fixed;
    top: 20px;
    left: 24px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
    color: #1f2937;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

.btn-back-website:hover {
    color: var(--signup-primary);
}

@media (max-width: 575px) {
    body.auth-page {
        padding: 72px 12px 20px;
        background-attachment: scroll;
    }

    .naccima-signup-page {
        min-height: calc(100vh - 92px);
    }

    .auth-container {
        padding: 12px 4px;
    }

    .auth-card {
        padding: 32px 24px;
        border-radius: 18px;
    }

    .btn-back-website {
        top: 14px;
        left: 12px;
        padding: 8px 12px;
        font-size: 13px;
    }
}
