/* General Setup */
body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background-color: #F8F9FA; /* Light grey background */
    color: #111;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Header */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px 64px;
    background-color: #FFFFFF;
    border-bottom: 1px solid #EAECEE;
}

.logo a {
    font-size: 50px;
    font-weight: 700;
    color: #111;
    text-decoration: none;
}

/* Main Container */
.signup-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 80px 24px;
}

.signup-card {
    background-color: #FFFFFF;
    padding: 48px;
    border-radius: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
    width: 100%;
    max-width: 480px;
}

.signup-card h1 {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-top: 0;
    margin-bottom: 40px;
}

/* Form Styling */
.form-group {
    margin-bottom: 24px;
}

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

.form-group .label-description {
    font-size: 13px;
    font-weight: 400;
    color: #6B7280;
    margin-top: -6px;
    margin-bottom: 12px;
}

input[type="text"],
input[type="email"],
input[type="password"],
textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #D1D5DB;
    border-radius: 8px;
    font-size: 16px;
    box-sizing: border-box; /* Important */
    transition: border-color 0.2s, box-shadow 0.2s;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus,
textarea:focus {
    outline: none;
    border-color: #6366F1;
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.2);
}

textarea {
    resize: vertical;
    min-height: 80px;
}

/* Slider */
.slider {
    -webkit-appearance: none;
    width: 100%;
    height: 8px;
    background: #E5E7EB;
    border-radius: 5px;
    outline: none;
    margin-top: 8px;
}

.slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: #6366F1;
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid #FFFFFF;
}

.slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #6366F1;
    cursor: pointer;
    border-radius: 50%;
    border: 2px solid #FFFFFF;
}

.slider-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #6B7280;
    margin-top: 8px;
}

/* Buttons */
.btn {
    text-decoration: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    border: 1px solid transparent;
}

.btn-primary {
    background-color: #6366F1; /* Primary purple color */
    color: #FFF;
}
.btn-primary:hover {
    background-color: #4F46E5;
}

.btn-submit {
    width: 100%;
    background-color: #6366F1;
    color: white;
    padding: 14px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    margin-top: 16px;
    transition: background-color 0.2s;
}

.btn-submit:hover {
    background-color: #4F46E5;
}

/* Styles for the header button container */
.header-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Style for the secondary (Login) button */
.btn-secondary {
    background-color: #FFFFFF;
    color: #1F2937;
    border: 1px solid #D1D5DB;
}
.btn-secondary:hover {
    background-color: #F9FAFB;
}


/* Style for the prompt at the bottom of the form */
.login-prompt {
    text-align: center;
    margin-top: 24px;
    font-size: 14px;
    color: #4B5563;
}

.login-prompt a {
    color: #4F46E5;
    font-weight: 600;
    text-decoration: none;
}

.login-prompt a:hover {
    text-decoration: underline;
}

.error-banner {
    background-color: #FEE2E2; /* A light red background */
    color: #B91C1C; /* A dark red text color */
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    border: 1px solid #FCA5A5;
}

.error-banner p {
    margin: 0;
    font-weight: 500;
}

.password-group {
    position: relative;
}
.password-group input {
    padding-right: 45px; /* Make space for the icon */
}
#togglePassword {
    position: absolute;
    top: 58%; /* Adjust vertical alignment */
    right: 15px;
    transform: translateY(-50%);
    cursor: pointer;
    color: #9CA3AF;
}


/* Loading State for Submit Button */
.btn-submit {
    display: flex; /* For spinner alignment */
    justify-content: center;
    align-items: center;
}
.btn-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}
.btn-submit.loading .btn-text {
    display: none;
}
.btn-submit.loading .btn-spinner {
    display: block;
}
.btn-submit.loading {
    opacity: 0.8;
    cursor: not-allowed;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

.hackathon-prompt {
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    padding: 15px 25px;
    margin-bottom: 20px;
    max-width: 500px;
    text-align: center;
    backdrop-filter: blur(5px); /* Adds a frosted glass effect */
}

.hackathon-prompt p {
    margin: 0;
    color: #1F2937;
    font-size: 15px;
    line-height: 1.6;
}

.hackathon-prompt strong {
    font-weight: 700;
}

.hackathon-prompt a {
    color: #4F46E5; /* Your primary purple */
    font-weight: 600;
    text-decoration: underline;
}

/* --- Mobile Responsiveness --- */
@media (max-width: 992px) {
    /* On tablets and mobile, stack the form and the prompt */
    .signup-container {
        flex-direction: column;
        align-items: center;
        gap: 30px;
        padding: 40px 20px;
    }
    .hackathon-prompt {
        text-align: center;
    }
}
@media (max-width: 600px) {
    .page-header { padding: 20px; }
    .signup-card { padding: 30px; }
}