* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.sticky-warning {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
    color: white;
    text-align: center;
    padding: 15px;
    font-size: 18px;
    font-weight: bold;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    padding-top: 80px;
}

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

.header h1 {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 24px;
    color: white;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.2);
    letter-spacing: -0.5px;
}

/* Error container with timer */
.error-container {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 24px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    border: 2px solid #c3dafe;
    animation: slideDown 0.3s ease-out;
    transition: all 0.3s ease;
}

/* Error container when there are errors */
.error-container.has-errors {
    box-shadow: 0 8px 32px rgba(220, 38, 38, 0.3);
    border: 2px solid #fecaca;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.error-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #fecaca;
}

.error-header #error-title {
    font-size: 18px;
    font-weight: 700;
    color: #667eea;
    transition: color 0.3s ease;
}

.error-container.has-errors .error-header #error-title {
    color: #dc2626;
}

.error-timer {
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: 700;
    color: #dc2626;
    background: #fef2f2;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #fecaca;
    transition: all 0.3s ease;
}

.error-messages {
    color: #991b1b;
    font-size: 14px;
}

.error-messages ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.error-messages li {
    padding: 8px 12px;
    margin-bottom: 8px;
    background-color: #fef2f2;
    border-radius: 8px;
    border-left: 4px solid #dc2626;
}

#registration-div {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 40px;
    width: 100%;
    max-width: 500px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

#registration-div form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

#registration-div label {
    font-size: 14px;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 8px;
}

#registration-div input[type="text"],
#registration-div input[type="email"],
#registration-div input[type="password"] {
    width: 100%;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 16px;
    background-color: white;
    color: #1a202c;
    transition: all 0.3s ease;
}

#registration-div input[type="text"]:focus,
#registration-div input[type="email"]:focus,
#registration-div input[type="password"]:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 4px rgba(102, 126, 234, 0.15);
    transform: translateY(-2px);
}

#registration-div input[type="text"]::placeholder,
#registration-div input[type="email"]::placeholder,
#registration-div input[type="password"]::placeholder {
    color: #9ca3af;
}

#registration-div input[type="submit"] {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 16px 24px;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    margin-top: 10px;
}

#registration-div input[type="submit"]:hover {
    background: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.5);
    transform: translateY(-2px);
}

#registration-div input[type="submit"]:active {
    transform: translateY(0);
}

#registration-div input[type="submit"]:disabled {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    cursor: not-allowed;
    opacity: 0.6;
    box-shadow: none;
}

#registration-div input[type="submit"]:disabled:hover {
    transform: none;
    box-shadow: none;
}

/* Consent checkboxes styling */
.consent-checkboxes {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 10px;
    margin-bottom: 10px;
}

.checkbox-wrapper {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.checkbox-wrapper input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    cursor: pointer;
    accent-color: #667eea;
    flex-shrink: 0;
}

.checkbox-label {
    font-size: 14px;
    font-weight: 500;
    color: #4a5568;
    cursor: pointer;
    line-height: 1.5;
    user-select: none;
}

.checkbox-label a {
    color: #667eea;
    text-decoration: underline;
    transition: all 0.3s ease;
    text-decoration: none;
}

.checkbox-label a:hover {
    color: #764ba2;
    text-decoration: none;
}

.checkbox-wrapper:hover .checkbox-label {
    color: #667eea;
}

.login-link {
    text-align: center;
    margin-top: 20px;
}

.login-link a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    color: #667eea;
    transition: all 0.3s ease;
}

.login-link a:hover {
    color: #764ba2;
    text-decoration: none;
}

/* Django form styling */
#registration-div .helptext {
    font-size: 12px;
    color: #667eea;
    margin-top: 5px;
    padding: 8px;
    background-color: #f0f4ff;
    border-radius: 8px;
    border: 1px solid #c3dafe;
}

#registration-div .helptext ul {
    margin: 0;
    padding-left: 20px;
}

#registration-div .helptext li {
    margin-bottom: 4px;
}

#registration-div .errorlist {
    color: #dc2626;
    font-size: 12px;
    margin-top: 5px;
    padding: 8px;
    background-color: #fef2f2;
    border-radius: 8px;
    border: 1px solid #fecaca;
}

#registration-div .errorlist li {
    list-style: none;
    margin-bottom: 4px;
}

.password-error {
    margin-top: 5px;
    font-size: 17px;
    color: #ff1a1a;
    font-weight: 600;
}

.password-error .error-message {
    color: #ff1a1a;
    font-size: 17px;
    padding: 8px;
    background-color: #ffe6e6;
    border-radius: 8px;
    border: 1px solid #ff9999;
    margin-top: 5px;
    font-weight: 600;
}

#registration-div input[type="password"].error {
    border-color: #dc2626 !important;
    box-shadow: 0 0 0 4px rgba(220, 38, 38, 0.15) !important;
}

#registration-div input[type="password"].valid {
    border-color: #10b981 !important;
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15) !important;
}


#registration-div .password-container {
    position: relative;
}

#registration-div .password-container input {
    padding-right: 44px;
}

#registration-div .password-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #6b7280;
    transition: color 0.2s ease;
}

#registration-div .password-toggle:hover {
    color: #667eea;
}

#registration-div .password-toggle svg {
    width: 20px;
    height: 20px;
}

/* Footer Styles */
.site-footer {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    padding: 20px 0;
    text-align: center;
    margin-top: auto;
    position: relative;
    z-index: 100;
    box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.2);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-text {
    margin: 5px 0;
    color: white;
    font-size: 12px;
    line-height: 1.4;
    font-weight: 500;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.2);
}
