:root {
    --nywhashauth-primary: #1a73e8;
    --nywhashauth-primary-soft: rgba(26, 115, 232, 0.1);
    --nywhashauth-primary-dark: #174ea6;
    --nywhashauth-secondary: #0078d4;
    --nywhashauth-gradient: linear-gradient(135deg, #1a73e8 0%, #0078d4 100%);
    --nywhashauth-bg-gradient: linear-gradient(to left top, #f8fafc, #e2e8f0, #f1f5f9, #e2e8f0, #f8fafc);
    --nywhashauth-border: #dae0e7;
    --nywhashauth-text-main: #1f1f1f;
    --nywhashauth-text-muted: #5f6368;
    --nywhashauth-shadow: 0 4px 12px rgba(26, 115, 232, 0.3);
    --nywhashauth-shadow-hover: 0 8px 20px rgba(26, 115, 232, 0.4);
    --nywhashauth-focus-ring: 0 0 0 4px rgba(26, 115, 232, 0.2);
}

.nywhashauth_auth_section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: linear-gradient(to left top, #ffc3c3, #e2d6ff, #ffe2f8, #f8d9ff, #b6b6b6);
}

.nywhashauth_auth_container {
    width: 100%;
    max-width: 550px;
    margin: 0 auto;
}

.nywhashauth_logo {
    display: block;
    text-align: center;
    margin-bottom: 30px;
}

.nywhashauth_logo img {
    max-width: 180px;
    height: auto;
}

.nywhashauth_auth_content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 2rem;
    padding: 2.5rem 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
}

.nywhashauth_text_center {
    text-align: center;
}

.nywhashauth_mb_4 {
    margin-bottom: 2rem;
}

.nywhashauth_h4 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
}

.nywhashauth_p {
    color: #475569;
    font-size: 1rem;
    margin: 0;
    line-height: 1.5;
}

.nywhashauth_form_row {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.nywhashauth_form_grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.nywhashauth_col_12,
.nywhashauth_grid_full {
    grid-column: span 2;
    width: 100%;
}

.nywhashauth_floating_group {
    position: relative;
}

.nywhashauth_input {
    width: 100%;
    height: 60px;
    padding: 1.5rem 1rem 0.5rem;
    font-size: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 1rem;
    background: white;
    transition: all 0.2s;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.02);
    outline: none;
    box-sizing: border-box;
}

.nywhashauth_input:focus {
    border-color: var(--nywhashauth-primary);
    box-shadow: var(--nywhashauth-focus-ring);
}

.nywhashauth_floating_group label {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    color: #64748b;
    pointer-events: none;
    transition: 0.2s;
    background: white;
    padding: 0 0.25rem;
    line-height: 1;
}

.nywhashauth_floating_group label[for="username"],
.nywhashauth_floating_group label[for="identity_number"] {
    top: 25%;
}

.nywhashauth_input:focus~label,
.nywhashauth_input:not(:placeholder-shown)~label {
    top: 0;
    transform: translateY(-50%) scale(0.85);
    color: var(--nywhashauth-primary);
    font-weight: 500;
}

.nywhashauth_input::placeholder {
    color: transparent !important;
}

.nywhashauth_floating_group select.nywhashauth_input {
    appearance: none;
    padding-top: 1.2rem;
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
}

.nywhashauth_floating_group select.nywhashauth_input+label {
    top: 0;
    transform: translateY(-50%) scale(0.85);
    color: var(--nywhashauth-primary);
    font-weight: 500;
}

.nywhashauth_input_group {
    display: flex;
    align-items: center;
    position: relative;
    width: 100%;
}

.nywhashauth_input_group .nywhashauth_input {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

.nywhashauth_input_group_prefix {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-right: none;
    border-radius: 1rem 0 0 1rem;
    height: 60px;
    display: flex;
    align-items: center;
    padding: 0 1rem;
    font-weight: 700;
    color: #1e293b;
    font-size: 1rem;
}

.nywhashauth_input_feedback {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.85rem;
    padding-left: 0.5rem;
    min-height: 1.2em;
    transition: all 0.2s;
}

.nywhashauth_input_feedback.error {
    color: #ef4444;
}

.nywhashauth_input_feedback.success {
    color: #10b981;
}

.nywhashauth_suggestions {
    background: white;
    padding: 0.75rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 100;
    margin-top: 0.5rem;
    border: 1px solid #e2e8f0;
    display: none;
}

.nywhashauth_suggestions_title {
    font-size: 0.75rem;
    font-weight: 700;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.5rem;
    display: block;
}

.nywhashauth_suggestions_list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.nywhashauth_suggestion_link {
    font-size: 0.85rem;
    color: var(--nywhashauth-primary);
    background: var(--nywhashauth-primary-soft);
    padding: 0.25rem 0.75rem;
    border-radius: 2rem;
    text-decoration: none;
    transition: all 0.2s;
    border: 1px solid transparent;
}

.nywhashauth_suggestion_link:hover {
    background: var(--nywhashauth-primary-soft);
    border-color: var(--nywhashauth-primary);
}

.nywhashauth_suggestion_link.taken {
    opacity: 0.5;
    text-decoration: line-through;
    cursor: not-allowed;
    background: #f1f5f9;
    color: #94a3b8;
}

.nywhashauth_flex_between {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: space-between;
    align-items: center;
}

.nywhashauth_checkbox_container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.95rem;
}

.nywhashauth_checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nywhashauth_checkbox input {
    width: 1.125rem;
    height: 1.125rem;
    accent-color: var(--nywhashauth-primary);
    margin: 0;
}

.nywhashauth_checkbox label {
    color: #475569;
    font-size: 0.95rem;
}

.nywhashauth_policy_links a {
    color: var(--nywhashauth-primary);
    text-decoration: none;
    font-weight: 600;
}

.nywhashauth_policy_links a:hover {
    text-decoration: underline;
}

.nywhashauth_link {
    color: var(--nywhashauth-primary);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
}

.nywhashauth_link:hover {
    color: var(--nywhashauth-primary-dark);
    text-decoration: underline;
}

.nywhashauth_button {
    background: var(--nywhashauth-gradient);
    border: none;
    color: white;
    font-weight: 600;
    padding: 0.875rem;
    border-radius: 1rem;
    font-size: 1rem;
    transition: all 0.2s;
    box-shadow: var(--nywhashauth-shadow);
    cursor: pointer;
    width: 100%;
    display: block;
    text-align: center;
}

.nywhashauth_button:hover {
    transform: translateY(-2px);
    box-shadow: var(--nywhashauth-shadow-hover);
    color: white;
}

.nywhashauth_register_text {
    text-align: center;
    color: #475569;
    font-size: 0.95rem;
    margin: 0;
}

.nywhashauth_form_disabled {
    position: relative;
    overflow: hidden;
    user-select: none;
}

.nywhashauth_form_disabled::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    z-index: 10;
    pointer-events: none;
}

.nywhashauth_disabled_overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 20;
    text-align: center;
    width: 100%;
    pointer-events: none;
}

.nywhashauth_disabled_overlay span {
    display: block;
    margin-top: 1rem;
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e293b;
}

.nywhashauth_banned {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100%;
}

.nywhashauth_banned_content {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border-radius: 2rem;
    padding: 2.5rem 2rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.nywhashauth_banned_heading {
    font-size: 2rem;
    font-weight: 700;
    color: #dc2626;
    margin: 0 0 1.5rem 0;
}

.nywhashauth_banned_image {
    max-width: 100%;
    height: auto;
    border-radius: 1rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.nywhashauth_banned_reason {
    margin: 1.5rem 0;
}

.nywhashauth_banned_reason_label {
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 0.5rem 0;
    font-size: 1.125rem;
}

.nywhashauth_banned_reason_text {
    color: #475569;
    font-size: 1rem;
    margin: 0;
    line-height: 1.6;
    background: #f8fafc;
    padding: 1rem;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
}

.nywhashauth_banned_button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--nywhashauth-gradient);
    color: white;
    font-weight: 600;
    padding: 0.875rem 2rem;
    border-radius: 2rem;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: var(--nywhashauth-shadow);
    margin-top: 1rem;
}

.nywhashauth_modal .modal-content {
    border: none;
    border-radius: 1.5rem;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
}

.nywhashauth_modal .modal-header {
    border-bottom: 1px solid #e2e8f0;
    padding: 1.5rem 1.5rem 0.5rem;
}

.nywhashauth_modal .modal-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
}

.nywhashauth_modal_btn {
    padding: 0.6rem 1.2rem;
    border-radius: 2rem;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    display: inline-block;
    transition: all 0.2s;
    border: none;
    cursor: pointer;
}

.nywhashauth_modal_btn_primary {
    background: var(--nywhashauth-gradient);
    color: white;
}

.nywhashauth_modal_btn_secondary {
    background: #e2e8f0;
    color: #475569;
}

.nywhashauth_verification_input {
    display: flex;
    position: relative;
    z-index: 1;
    height: 60px;
    width: 100%;
}

.nywhashauth_verification_input::after {
    position: absolute;
    content: '';
    right: -37px;
    width: 35px;
    height: 60px;
    background-color: transparent;
    z-index: 2;
}

.nywhashauth_verification_input input {
    position: absolute;
    height: 100%;
    width: calc(100% + 80px);
    left: 0;
    background: transparent;
    border: none;
    font-size: 25px !important;
    font-weight: 800;
    letter-spacing: 51px;
    text-indent: 1px;
    z-index: 1;
    padding-left: 25px;
    font-family: 'Courier Prime', monospace;
    color: #1e293b !important;
    outline: none;
    box-shadow: none !important;
}

.nywhashauth_verification_input input:focus {
    background: transparent !important;
    border: none !important;
}

.nywhashauth_verification_input .boxes {
    position: absolute;
    top: 0;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    z-index: -1;
}

.nywhashauth_verification_input span {
    height: 60px;
    width: calc((100% / 6) - 8px);
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 0.75rem;
    text-align: center;
    line-height: 60px;
    color: #64748b;
    font-weight: 700;
}

.nywhashauth_resend_section {
    text-align: center;
}

.nywhashauth_resend_text {
    color: #475569;
    font-size: 0.95rem;
}

.nywhashauth_countdown {
    color: var(--nywhashauth-primary);
    font-weight: 700;
}

.nywhashauth_error {
    color: #dc2626;
    font-size: 0.875rem;
    display: block;
    margin-top: 0.5rem;
}

.hover-input-popup {
    position: relative;
}

.input-popup {
    background: white;
    padding: 1rem;
    border-radius: 1rem;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    z-index: 100;
    margin-top: 0.5rem;
    display: none;
}

.hover-input-popup:focus-within .input-popup {
    display: block;
}

.input-popup p {
    margin: 4px 0;
    font-size: 0.85rem;
}

.input-popup p.error {
    color: #dc2626;
}

.input-popup p.success {
    color: #16a34a;
}

/* Select2 Premium Overrides */
.select2-container--default .select2-selection--single {
    height: 60px !important;
    border: 1px solid #e2e8f0 !important;
    border-radius: 1rem !important;
    padding: 1.2rem 1rem 0 !important;
    background: white !important;
    display: flex !important;
    align-items: center !important;
    transition: all 0.2s !important;
    outline: none !important;
}

.select2-container--default.select2-container--focus .select2-selection--single {
    border-color: var(--nywhashauth-primary) !important;
    box-shadow: var(--nywhashauth-focus-ring) !important;
}

.select2-container--default .select2-selection--single .select2-selection__rendered {
    color: #1e293b !important;
    font-size: 1rem !important;
    padding-left: 0 !important;
    line-height: normal !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow {
    height: 60px !important;
    right: 1rem !important;
}

.select2-container--default .select2-selection--single .select2-selection__arrow b {
    border: none !important;
    width: 1.25rem !important;
    height: 1.25rem !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'%3E%3C/path%3E%3C/svg%3E") !important;
    background-size: contain !important;
    background-repeat: no-repeat !important;
    left: 0 !important;
    margin: 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
}

.select2-container--default.select2-container--open .select2-selection--single .select2-selection__arrow b {
    transform: translateY(-50%) rotate(180deg) !important;
}

.select2-dropdown {
    border: 1px solid #e2e8f0 !important;
    border-radius: 1rem !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1) !important;
    overflow: hidden !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    margin-top: 0.5rem !important;
    z-index: 10000 !important;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #000 !important;
    color: #fff !important;
}

.select2-container--default .select2-results__option {
    padding: 0.75rem 1rem !important;
    font-size: 0.95rem !important;
    color: #475569 !important;
}

.select2-search--dropdown {
    padding: 0.75rem !important;
}

.select2-search--dropdown .select2-search__field {
    border: 1px solid #e2e8f0 !important;
    border-radius: 0.75rem !important;
    padding: 0.5rem 0.75rem !important;
    outline: none !important;
}

/* Fix for disabled select2 */
.select2-container--default.select2-container--disabled .select2-selection--single {
    background-color: #f1f5f9 !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
}

@media (max-width: 640px) {
    .nywhashauth_form_grid {
        grid-template-columns: 1fr;
    }

    .nywhashauth_col_12,
    .nywhashauth_grid_full {
        grid-column: span 1;
    }

    .nywhashauth_banned_content {
        padding: 2rem 1.5rem;
    }

    .nywhashauth_auth_content {
        padding: 2rem 1.5rem;
    }
}