

/* frontend/static/css/auth.css */


/* ============================================================
   frontend/static/css/auth.css
   ============================================================ */


/* ============================================================
   AUTH PAGE
   ============================================================ */

.auth-page {
    width: 100%;
    min-height: calc(100vh - 80px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    box-sizing: border-box;
}


/* ============================================================
   AUTH CARD
   ============================================================ */

.auth-card {
    width: 100%;
    max-width: 460px;
    margin: 0 auto;
    padding: 32px;
    box-sizing: border-box;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.08);
}


/* ============================================================
   AUTH HEADER
   ============================================================ */

.auth-header {
    margin-bottom: 28px;
    text-align: center;
}

.auth-header .section-label {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 1.5px;
    line-height: 1.4;
}

.auth-header h1 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
    line-height: 1.2;
    color: #111827;
}

.auth-header p {
    margin: 10px 0 0;
    font-size: 14px;
    line-height: 1.5;
    color: #6b7280;
}


/* ============================================================
   FORM
   ============================================================ */

.auth-form {
    width: 100%;
}

.form-group {
    width: 100%;
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
    color: #374151;
}


/* ============================================================
   FORM INPUTS
   ============================================================ */

.form-group input,
.form-group select {
    display: block;
    width: 100%;
    height: 46px;
    margin: 0;
    padding: 0 13px;
    box-sizing: border-box;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    outline: none;
    background: #ffffff;
    color: #111827;
    font-family: inherit;
    font-size: 15px;
    line-height: 1;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.form-group select {
    cursor: pointer;
}

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


/* ============================================================
   INPUT HOVER
   ============================================================ */

.form-group input:hover,
.form-group select:hover {
    border-color: #9ca3af;
}


/* ============================================================
   INPUT FOCUS
   ============================================================ */

.form-group input:focus,
.form-group select:focus {
    border-color: #111827;
    box-shadow: 0 0 0 3px rgba(17, 24, 39, 0.08);
}


/* ============================================================
   INPUT VALIDATION
   ============================================================ */

.form-group input:invalid:not(:placeholder-shown) {
    border-color: #d1d5db;
}


/* ============================================================
   FORM HELP TEXT
   ============================================================ */

.form-group small {
    display: block;
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.4;
    color: #6b7280;
}


/* ============================================================
   PASSWORD RESET — VERIFICATION CODE
   ============================================================ */

.reset-code-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    margin: -2px 0 14px;
    padding: 9px 12px;
    box-sizing: border-box;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
}

.reset-code-timer strong {
    color: #111827;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}


/* ============================================================
   PASSWORD RESET — EXPIRED CODE
   ============================================================ */

.reset-code-timer.is-expired {
    color: #6b7280;
}

.reset-code-timer.is-expired strong {
    color: #b91c1c;
}


/* ============================================================
   PASSWORD RESET — CODE INPUT
   ============================================================ */

#verification_code {
    text-align: center;
    letter-spacing: 0.22em;
    font-size: 18px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}


/* ============================================================
   PASSWORD RESET — RESEND FORM
   ============================================================ */

#forgot-password-resend-form {
    margin-top: 10px;
}

#forgot-password-resend-form .btn {
    margin-top: 0;
}


/* ============================================================
   PASSWORD RESET — DISABLED BUTTON
   ============================================================ */

.auth-form .btn:disabled,
.auth-footer .btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}


/* ============================================================
   BUTTONS
   ============================================================ */

.auth-form .btn,
.auth-footer .btn {
    width: 100%;
    min-height: 46px;
    box-sizing: border-box;
}

.auth-form .btn {
    margin-top: 6px;
}

.btn-full {
    width: 100%;
}


/* ============================================================
   FORGOT PASSWORD LINK
   ============================================================ */

.auth-forgot-password {
    width: 100%;
    margin-top: 14px;
    text-align: center;
}

.auth-forgot-password a {
    display: inline-block;
    color: #374151;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-decoration: none;
    transition:
        color 0.2s ease,
        opacity 0.2s ease;
}

.auth-forgot-password a:hover {
    color: #111827;
    text-decoration: underline;
    text-underline-offset: 3px;
}


/* ============================================================
   AUTH FOOTER
   ============================================================ */

.auth-footer {
    margin-top: 24px;
    padding-top: 22px;
    border-top: 1px solid #e5e7eb;
    text-align: center;
}

.auth-footer p {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #6b7280;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 600px) {

    .auth-page {
        min-height: auto;
        align-items: flex-start;
        padding: 24px 14px;
    }

    .auth-card {
        max-width: 100%;
        padding: 24px 18px;
        border-radius: 12px;
    }

    .auth-header {
        margin-bottom: 24px;
    }

    .auth-header h1 {
        font-size: 24px;
    }

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

    .reset-code-timer {
        margin-bottom: 13px;
        padding: 9px 10px;
        font-size: 12px;
    }

    #verification_code {
        font-size: 17px;
        letter-spacing: 0.18em;
    }

}


/* ============================================================
   SMALL PHONE
   ============================================================ */

@media (max-width: 380px) {

    .auth-page {
        padding: 18px 10px;
    }

    .auth-card {
        padding: 20px 15px;
    }

    .auth-header h1 {
        font-size: 22px;
    }

    .form-group input,
    .form-group select {
        height: 44px;
    }

    #verification_code {
        font-size: 16px;
        letter-spacing: 0.15em;
    }

    .reset-code-timer {
        font-size: 11px;
    }

}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    .form-group input,
    .form-group select,
    .auth-forgot-password a {
        transition: none;
    }

}

















/* ============================================================
   BUTTONS
   ============================================================ */
.auth-form .btn,
.auth-footer .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    box-sizing: border-box;
    margin: 0;
    padding: 11px 18px;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    outline: none;
    font-family: var(--font-family-base);
    font-size: 14px;
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    transition:
        background-color var(--transition-fast),
        border-color var(--transition-fast),
        color var(--transition-fast),
        box-shadow var(--transition-fast),
        transform var(--transition-fast);
}

.auth-form .btn {
    margin-top: 6px;
}

.btn-full {
    width: 100%;
}

/* ============================================================
   PRIMARY BUTTON
   ============================================================ */
.auth-form .btn-primary,
.auth-footer .btn-primary {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
    box-shadow: var(--shadow-login);
}

.auth-form .btn-primary:hover,
.auth-footer .btn-primary:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: #fff;
    box-shadow: var(--shadow-login-hover);
    transform: translateY(-1px);
}

.auth-form .btn-primary:active,
.auth-footer .btn-primary:active {
    background: var(--color-primary-darker);
    border-color: var(--color-primary-darker);
    color: #fff;
    box-shadow: var(--shadow-login-active);
    transform: translateY(0);
}

.auth-form .btn-primary:focus-visible,
.auth-footer .btn-primary:focus-visible {
    border-color: var(--color-primary);
    box-shadow:
        var(--shadow-login),
        0 0 0 var(--focus-width) var(--focus-color);
}

/* ============================================================
   SECONDARY BUTTON
   ============================================================ */
.auth-form .btn-secondary,
.auth-footer .btn-secondary {
    background: var(--color-surface);
    border-color: var(--color-border);
    color: var(--color-text-secondary);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.auth-form .btn-secondary:hover,
.auth-footer .btn-secondary:hover {
    background: var(--color-primary-soft);
    border-color: var(--color-primary-light);
    color: var(--color-primary-dark);
    box-shadow: 0 5px 14px rgba(37,99,235,0.10);
    transform: translateY(-1px);
}

.auth-form .btn-secondary:active,
.auth-footer .btn-secondary:active {
    background: var(--color-primary-soft-hover);
    border-color: var(--color-primary-light);
    color: var(--color-primary-darker);
    box-shadow: 0 2px 7px rgba(37,99,235,0.08);
    transform: translateY(0);
}

.auth-form .btn-secondary:focus-visible,
.auth-footer .btn-secondary:focus-visible {
    border-color: var(--color-primary);
    box-shadow:
        0 2px 8px rgba(0,0,0,0.04),
        0 0 0 var(--focus-width) var(--focus-color);
}

/* ============================================================
   BUTTON DISABLED
   ============================================================ */
.auth-form .btn:disabled,
.auth-form .btn[disabled],
.auth-footer .btn:disabled,
.auth-footer .btn[disabled] {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
    box-shadow: none;
}

/* ============================================================
   BUTTON POINTER
   ============================================================ */
.auth-form .btn:not(:disabled),
.auth-footer .btn:not(:disabled),
.registration-link-button:not(:disabled) {
    cursor: pointer;
}

/* ============================================================
   MOBILE BUTTONS
   ============================================================ */
@media (max-width: 600px) {
    .auth-form .btn,
    .auth-footer .btn {
        min-height: 46px;
        padding: 11px 16px;
    }
}

/* ============================================================
   SMALL PHONE
   ============================================================ */
@media (max-width: 380px) {
    .auth-form .btn,
    .auth-footer .btn {
        min-height: 44px;
        padding: 10px 14px;
        font-size: 13px;
    }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
    .auth-form .btn,
    .auth-footer .btn {
        transition: none;
    }
}
















/* ============================================================
   REGISTRATION WIZARD
   ============================================================ */

.registration-progress {

    width: 100%;

    margin: 0 0 28px;

}


/* ============================================================
   PROGRESS BAR
   ============================================================ */

.registration-progress-bar {

    position: relative;

    width: 100%;

    height: 5px;

    overflow: hidden;

    background: #e5e7eb;

    border-radius: 999px;

}


.registration-progress-fill {

    display: block;

    height: 100%;

    background: #2563eb;

    border-radius: inherit;

    transition: width 0.3s ease;

}


/* ============================================================
   PROGRESS INFORMATION
   ============================================================ */

.registration-progress-info {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    margin-top: 8px;

    color: #6b7280;

    font-size: 11px;

    line-height: 1.4;

}


/* ============================================================
   REGISTRATION STEP
   ============================================================ */

.registration-step {

    width: 100%;

}


/* ============================================================
   STEP INDICATOR
   ============================================================ */

.registration-step-indicator {

    display: flex;

    align-items: center;

    gap: 10px;

    margin-bottom: 20px;

    color: #374151;

    font-size: 14px;

    font-weight: 700;

    line-height: 1.4;

}


.registration-step-number {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    flex: 0 0 30px;

    width: 30px;

    height: 30px;

    box-sizing: border-box;

    background: #eff6ff;

    border: 1px solid #bfdbfe;

    border-radius: 50%;

    color: #2563eb;

    font-size: 13px;

    font-weight: 800;

}


/* ============================================================
   REGISTRATION FORM
   ============================================================ */

.registration-form {

    width: 100%;

}


/* ============================================================
   EMAIL SUMMARY
   ============================================================ */

.registration-email-summary {

    display: flex;

    flex-direction: column;

    gap: 3px;

    margin-bottom: 20px;

    padding: 12px 14px;

    box-sizing: border-box;

    background: #f9fafb;

    border: 1px solid #e5e7eb;

    border-radius: 9px;

    color: #6b7280;

    font-size: 12px;

    line-height: 1.5;

}


.registration-email-summary strong {

    color: #111827;

    font-size: 13px;

    font-weight: 700;

    word-break: break-word;

}


/* ============================================================
   REGISTRATION CODE TIMER
   ============================================================ */

.registration-code-timer {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 5px;

    width: 100%;

    margin: -2px 0 14px;

    padding: 9px 12px;

    box-sizing: border-box;

    background: #f9fafb;

    border: 1px solid #e5e7eb;

    border-radius: 8px;

    color: #6b7280;

    font-size: 13px;

    line-height: 1.4;

    text-align: center;

}


.registration-code-timer strong {

    color: #111827;

    font-weight: 700;

    font-variant-numeric: tabular-nums;

}


.registration-code-timer.is-expired {

    color: #b91c1c;

}


.registration-code-timer.is-expired strong {

    color: #b91c1c;

}


/* ============================================================
   REGISTRATION VERIFICATION CODE
   ============================================================ */

#registration_verification_code {

    text-align: center;

    letter-spacing: 0.22em;

    font-size: 20px;

    font-weight: 800;

    font-variant-numeric: tabular-nums;

}


/* ============================================================
   RESEND FORM
   ============================================================ */

.registration-resend-form {

    margin-top: 10px;

}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 600px) {

    .registration-progress {

        margin-bottom: 24px;

    }

    .registration-step-indicator {

        margin-bottom: 18px;

    }

    #registration_verification_code {

        font-size: 18px;

        letter-spacing: 0.18em;

    }

}


/* ============================================================
   SMALL PHONE
   ============================================================ */

@media (max-width: 380px) {

    .registration-progress-info {

        font-size: 10px;

    }

    .registration-step-indicator {

        font-size: 13px;

    }

    .registration-step-number {

        flex-basis: 28px;

        width: 28px;

        height: 28px;

    }

    #registration_verification_code {

        font-size: 17px;

        letter-spacing: 0.15em;

    }

}


/* ============================================================
   REGISTRATION — CHANGE EMAIL
   ============================================================ */

.registration-inline-form {
    width: 100%;
    margin: 12px 0 0;
    text-align: center;
}

.registration-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-height: 36px;
    margin: 0;
    padding: 7px 12px;
    border: 0;
    outline: none;
    background: transparent;
    color: #6b7280;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        opacity 0.2s ease;
}

.registration-link-button:hover {
    color: #111827;
    background: #f3f4f6;
    border-radius: 7px;
}

.registration-link-button:focus-visible {
    color: #111827;
    background: #f3f4f6;
    border-radius: 7px;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.registration-link-button:active {
    opacity: 0.75;
}

@media (max-width: 600px) {

    .registration-inline-form {
        margin-top: 10px;
    }

    .registration-link-button {
        min-height: 34px;
        padding: 6px 10px;
        font-size: 12px;
    }

}




/* ============================================================
   REGISTRATION — CHANGE EMAIL BUTTON
   ============================================================ */

.registration-inline-form {
    width: 100%;
    margin: 12px 0 0;
    text-align: center;
}

.registration-link-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 42px;
    margin: 0;
    padding: 9px 14px;
    box-sizing: border-box;
    border: 1px solid transparent;
    border-radius: 8px;
    outline: none;
    background: transparent;
    color: #374151;
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition:
        color 0.2s ease,
        background-color 0.2s ease,
        border-color 0.2s ease;
}

.registration-link-button:hover {
    background: #f9fafb;
    border-color: #e5e7eb;
    color: #111827;
}

.registration-link-button:focus-visible {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.registration-link-button:active {
    background: #f3f4f6;
}

.registration-link-button:disabled {
    cursor: not-allowed;
    opacity: 0.55;
}

































/* ============================================================
   REGISTRATION — PROFILE GALLERY UPLOAD
   ============================================================ */

.gallery-upload-group {

    width: 100%;
    margin: 0 0 20px;

}


/* ============================================================
   UPLOAD CARD
   ============================================================ */

.gallery-upload-card {

    position: relative;

    display: flex;

    width: 100%;
    min-height: 220px;

    box-sizing: border-box;

    margin: 0;

    padding: 18px;

    border: 1.5px dashed #cbd5e1;

    border-radius: 14px;

    background: #f8fafc;

    color: #374151;

    cursor: pointer;

    overflow: hidden;

    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;

}


/* ============================================================
   UPLOAD CARD HOVER
   ============================================================ */

.gallery-upload-card:hover {

    border-color: #93c5fd;

    background: #f8fbff;

    box-shadow:
        0 8px 24px rgba(37, 99, 235, 0.08);

    transform: translateY(-1px);

}


/* ============================================================
   UPLOAD CARD FOCUS
   ============================================================ */

.gallery-upload-card:focus-within {

    border-color: #2563eb;

    box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.12);
}


/* ============================================================
   EMPTY UPLOAD STATE
   ============================================================ */

.gallery-upload-empty {

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    width: 100%;

    min-height: 184px;

    box-sizing: border-box;

    text-align: center;

}


.gallery-upload-icon {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 54px;

    height: 54px;

    margin-bottom: 14px;

    box-sizing: border-box;

    border: 1px solid #bfdbfe;

    border-radius: 14px;

    background: #eff6ff;

    color: #2563eb;

}


.gallery-upload-icon svg {

    width: 25px;

    height: 25px;

    stroke-width: 1.8;

}


.gallery-upload-empty strong {

    display: block;

    margin: 0;

    color: #111827;

    font-size: 15px;

    font-weight: 700;

    line-height: 1.4;

}


.gallery-upload-empty > span:not(.gallery-upload-icon) {

    display: block;

    margin-top: 5px;

    color: #6b7280;

    font-size: 13px;

    line-height: 1.45;

}


.gallery-upload-empty small {

    display: block;

    margin-top: 12px;

    color: #9ca3af;

    font-size: 11px;

    line-height: 1.4;

}


/* ============================================================
   PREVIEW STATE
   ============================================================ */

.gallery-upload-preview {

    display: flex;

    flex-direction: column;

    width: 100%;

    min-height: 184px;

}


.gallery-upload-preview[hidden] {

    display: none;

}


/* ============================================================
   PREVIEW HEADER
   ============================================================ */

.gallery-preview-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 12px;

    width: 100%;

    margin-bottom: 12px;

}


.gallery-preview-header > div {

    display: flex;

    flex-direction: column;

    min-width: 0;

    gap: 2px;

}


.gallery-preview-header strong {

    color: #111827;

    font-size: 14px;

    font-weight: 700;

    line-height: 1.4;

}


.gallery-preview-header span:not(.gallery-preview-change) {

    color: #6b7280;

    font-size: 11px;

    line-height: 1.4;

}


.gallery-preview-change {

    flex: 0 0 auto;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 32px;

    padding: 6px 10px;

    box-sizing: border-box;

    border: 1px solid #dbeafe;

    border-radius: 7px;

    background: #eff6ff;

    color: #2563eb;

    font-size: 11px;

    font-weight: 700;

    line-height: 1;

}


/* ============================================================
   PREVIEW GRID
   ============================================================ */

.gallery-preview-grid {

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 8px;

    width: 100%;

}


.gallery-preview-item {

    position: relative;

    width: 100%;

    aspect-ratio: 1 / 1;

    overflow: hidden;

    border-radius: 9px;

    background: #e5e7eb;

    box-shadow:
        0 2px 7px rgba(0, 0, 0, 0.06);

}


.gallery-preview-item img {

    display: block;

    width: 100%;

    height: 100%;

    object-fit: cover;

}


/* ============================================================
   PREVIEW NUMBER
   ============================================================ */

.gallery-preview-number {

    position: absolute;

    top: 6px;

    left: 6px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    width: 22px;

    height: 22px;

    box-sizing: border-box;

    border-radius: 50%;

    background: rgba(17, 24, 39, 0.78);

    color: #ffffff;

    font-size: 10px;

    font-weight: 700;

    line-height: 1;

    backdrop-filter: blur(4px);

}


/* ============================================================
   ADD / CHANGE AREA
   ============================================================ */

.gallery-preview-add {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    width: 100%;

    margin-top: 10px;

    padding: 9px 10px;

    box-sizing: border-box;

    border: 1px dashed #cbd5e1;

    border-radius: 8px;

    background: #ffffff;

    color: #6b7280;

    font-size: 11px;

    font-weight: 600;

    line-height: 1.4;

}


.gallery-preview-add svg {

    width: 14px;

    height: 14px;

    stroke-width: 2;

}


/* ============================================================
   UPLOAD HELP
   ============================================================ */

.gallery-upload-help {

    display: block;

    margin-top: 8px;

    color: #6b7280;

    font-size: 12px;

    line-height: 1.5;

}


/* ============================================================
   GALLERY BUTTON
   ============================================================ */
#registration-gallery-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin-top: 6px;
    padding: 12px 18px;
    box-sizing: border-box;

    background: var(--color-primary);
    border: 1px solid var(--color-primary);
    border-radius: var(--radius-md);

    color: #ffffff;
    font-family: var(--font-family-base);
    font-size: 14px;
    font-weight: var(--font-weight-bold);
    line-height: 1.2;
    text-align: center;

    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;

    box-shadow: var(--shadow-login);

    transition:
        background-color var(--transition-fast),
        border-color var(--transition-fast),
        color var(--transition-fast),
        box-shadow var(--transition-fast),
        transform var(--transition-fast);
}

#registration-gallery-button:hover {
    background: var(--color-primary-dark);
    border-color: var(--color-primary-dark);
    color: #ffffff;
    box-shadow: var(--shadow-login-hover);
    transform: translateY(-1px);
}

#registration-gallery-button:active {
    background: var(--color-primary-darker);
    border-color: var(--color-primary-darker);
    color: #ffffff;
    box-shadow: var(--shadow-login-active);
    transform: translateY(0);
}

#registration-gallery-button:focus-visible {
    border-color: var(--color-primary);
    box-shadow:
        var(--shadow-login),
        0 0 0 var(--focus-width) var(--focus-color);
}

#registration-gallery-button:disabled,
#registration-gallery-button[disabled] {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
    box-shadow: none;
}

@media (max-width: 600px) {
    #registration-gallery-button {
        min-height: 46px;
        padding: 11px 16px;
    }
}

@media (max-width: 380px) {
    #registration-gallery-button {
        min-height: 44px;
        padding: 10px 14px;
        font-size: 13px;
    }
}

@media (prefers-reduced-motion: reduce) {
    #registration-gallery-button {
        transition: none;
    }
}

/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width: 600px) {

    .gallery-upload-card {

        min-height: 205px;

        padding: 14px;

        border-radius: 12px;

    }

    .gallery-upload-empty {

        min-height: 177px;

    }

    .gallery-preview-grid {

        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        gap: 6px;

    }

    .gallery-preview-item {

        border-radius: 7px;

    }

    .gallery-preview-number {

        top: 5px;

        left: 5px;

        width: 20px;

        height: 20px;

        font-size: 9px;

    }

}


/* ============================================================
   SMALL PHONE
   ============================================================ */

@media (max-width: 380px) {

    .gallery-upload-card {

        min-height: 190px;

        padding: 12px;

    }

    .gallery-upload-empty {

        min-height: 164px;

    }

    .gallery-upload-icon {

        width: 48px;

        height: 48px;

        margin-bottom: 11px;

        border-radius: 12px;

    }

    .gallery-upload-icon svg {

        width: 22px;

        height: 22px;

    }

    .gallery-upload-empty strong {

        font-size: 14px;

    }

    .gallery-upload-empty > span:not(.gallery-upload-icon) {

        font-size: 12px;

    }

    .gallery-preview-header strong {

        font-size: 13px;

    }

    .gallery-preview-change {

        min-height: 30px;

        padding: 6px 9px;

        font-size: 10px;

    }

}


/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {

    .gallery-upload-card {

        transition: none;

    }

}