/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #f5f5f5;
}

.font-nunito-sans-10-pt {
  /* Use the exact name from the @font-face rule */
  font-family: 'Nunito Sans', sans-serif;
  font-size: 10pt;
}



/* Nunito Sans font for top bar */
@font-face {
    font-family: 'Nunito Sans';
    src: url('/static/fonts/nunito-sans/NunitoSans-VariableFont_YTLC,opsz,wdth,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Nunito Sans';
    src: url('/static/fonts/nunito-sans/NunitoSans-Italic-VariableFont_YTLC,opsz,wdth,wght.ttf') format('truetype');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

/*!* static/fonts/fonts.css or add to static/styles.css *!*/
/*@font-face {*/
/*  font-family: 'Nunito Sans';*/
/*  font-style: normal;*/
/*  font-weight: 200 1000;*/
/*  font-display: swap;*/
/*  src: url('/static/fonts/nunito-sans/NunitoSans-VariableFont_YTLC,opsz,wdth,wght.ttf') format('truetype-variations');*/
/*}*/

/*@font-face {*/
/*  font-family: 'Nunito Sans';*/
/*  font-style: italic;*/
/*  font-weight: 200 1000;*/
/*  font-display: swap;*/
/*  src: url('/static/fonts/nunito-sans/NunitoSans-Italic-VariableFont_YTLC,opsz,wdth,wght.ttf') format('truetype-variations');*/
/*}*/

/* Auth container */
.auth-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.auth-card {
    background: white;
    border-radius: 18px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    padding: 40px;
    width: 100%;
    max-width: 400px;
}

.auth-footer {
    margin-top: 20px;
    text-align: center;
    color: #666;
    font-size: 0.9rem;
}

/* Registration styles */
.register-header {
    text-align: center;
    margin-bottom: 30px;
}

.register-header h1 {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
}

.subtitle {
    color: #666;
    font-size: 14px;
}

.link {
    color: #2563eb;
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}

/* Form styles */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    font-size: 14px;
}

.required {
    color: #dc2626;
}

.form-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s;
}

.form-input:focus {
    outline: none;
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-input.has-error {
    border-color: #dc2626;
}

.error-message {
    color: #dc2626;
    font-size: 12px;
    margin-top: 4px;
}

/* Checkbox */
.checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
    margin-top: 2px;
}

/* Button */
.btn {
    padding: 12px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.btn-primary {
    background: #2563eb;
    color: white;
}

.btn-primary:hover {
    background: #1d4ed8;
}

.btn-full {
    width: 100%;
}

/* Alert */
.alert {
    padding: 12px 16px;
    border-radius: 6px;
    margin-bottom: 20px;
    font-size: 14px;
}

.alert-error {
    background: #fee2e2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.register-footer {
    margin-top: 20px;
    text-align: center;
    font-size: 12px;
    color: #666;
}

.text-sm {
    font-size: 12px;
}

:root {
    --auth-bg: #f5fafb;
}

/* Utility to force the auth background even if Tailwind arbitrary colors aren't available */
.bg-auth {
    background-color: var(--auth-bg) !important;
}

/* Optional: apply directly to body when needed */
body.body-auth {
    background-color: var(--auth-bg) !important;
}


/* Generic Nunito utility for reuse without forcing size */
.font-nunito {
  font-family: 'Nunito Sans', sans-serif;
}



/* ===== DROPZONE CLICKABILITY FIX ===== */
/* Ensure all dropzones are clickable */
.dropzone {
    cursor: pointer !important;
}

.dropzone * {
    cursor: pointer;
}

.dropzone .dz-message {
    pointer-events: none;
}

/* Specific fix for steps upload page */
#stepsDropzone {
    cursor: pointer !important;
}

#stepsDropzone:hover {
    border-color: #3b82f6 !important;
    background-color: #f8fafc !important;
}

/* Override any conflicting styles */
.dropzone.dz-clickable,
.dropzone.dz-clickable * {
    cursor: pointer !important;
}

.dropzone.dz-clickable .dz-message,
.dropzone.dz-clickable .dz-message * {
    pointer-events: none;
}

.dropzone .dz-preview .dz-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
