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

body.signup-page {
    font-family: 'Poppins', sans-serif;
    background-color: #121212;
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ===== Wrapper with full-page background and centering ===== */
.signup-page-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: url("https://43771328.fs1.hubspotusercontent-na1.net/hubfs/43771328/shutterstock_2470156997.jpg") center center / cover no-repeat;
    position: relative;
    padding: 1rem;
}

.signup-page-wrapper::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1;
}

/* ===== Signup container ===== */
.signup-container {
    position: relative;
    z-index: 2;
    max-width: 400px;
    width: 100%;
    background-color: #1e1e1e;
    padding: 2rem 2.5rem;
    border-radius: 10px;
    box-shadow: 0 6px 24px rgba(255, 76, 76, 0.4);
    color: #fff;
    text-align: center;
}

/* ===== Signup heading ===== */
.signup-container h2 {
    margin-bottom: 1.4rem;
    font-weight: 600;
    font-size: 2rem;
    color: #ffffff;
    text-shadow: 0 0 10px #ff4c4c;
}

/* ===== Form Fields ===== */
.signup-form .form-group {
    margin-bottom: 1.25rem;
    text-align: left;
}

.signup-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    font-size: 1rem;
    color: #fff;
}

/* Input field base */
.signup-form input,
.signup-form select,
.signup-form textarea {
    width: 100%;
    padding: 0.6rem 0.8rem;
    font-size: 1rem;
    border: 1px solid #444;
    border-radius: 6px;
    background-color: #121212;
    color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    font-family: inherit;
}

.signup-form input::placeholder,
.signup-form textarea::placeholder {
    color: #bbb;
}

.signup-form input:focus,
.signup-form select:focus,
.signup-form textarea:focus {
    border-color: #ff4c4c;
    outline: none;
    box-shadow: 0 0 8px rgba(255, 76, 76, 0.6);
}

/* ===== Hover Message Logic ===== */
.field-wrapper {
    position: relative;
}

.field-message {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #330000;
    color: #ff6b6b;
    padding: 0.6rem 1rem;
    border-radius: 6px;
    font-size: 0.85rem;
    margin-top: 0.3rem;
    box-shadow: 0 2px 8px rgba(255, 76, 76, 0.3);
    z-index: 10;
}

/* Only show on hover */
.field-wrapper:hover .field-message {
    display: block;
}

/* Optional: show also on focus for accessibility */
.field-wrapper:focus-within .field-message {
    display: block;
}

/* ===== Signup button ===== */
.btn-signup {
    width: 100%;
    padding: 0.8rem;
    background-color: #ff4c4c;
    color: #fff;
    border: none;
    font-size: 1.1rem;
    border-radius: 50px;
    cursor: pointer;
    font-weight: 700;
    box-shadow: 0 0 10px #ff4c4c;
    transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.12s ease;
}

.btn-signup:hover,
.btn-signup:focus {
    background-color: #e63b3b;
    box-shadow: 0 0 20px #e63b3b;
    transform: translateY(-2px);
    outline: none;
}

/* ===== Error Messages (non-field or top-level) ===== */
.error-message,
.error {
    color: #ff6b6b;
    background-color: #330000;
    padding: 0.8rem 1rem;
    border-radius: 6px;
    margin-bottom: 1rem;
    font-weight: 600;
}

/* ===== Login Link ===== */
.login-link {
    margin-top: 1rem;
    font-size: 0.95rem;
    color: #ddd;
}

.login-link a {
    color: #ff4c4c;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.3s ease;
}

.login-link a:hover,
.login-link a:focus {
    color: #e63b3b;
    text-decoration: underline;
}

/* ===== Contact Section ===== */
.contact-section {
    background-color: #222;
    color: #fff;
    text-align: center;
    padding: 3rem 1rem;
}

.contact-section h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
    text-shadow:
        0 0 6px #ff4c4c,
        0 0 12px #ff4c4c;
}

.contact-section p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    color: #ddd;
}

.social-icons {
    display: flex;
    justify-content: center;
    gap: 2rem;
    font-size: 2rem;
}

.social-icons a {
    color: #fff;
    transition: color 0.3s ease, text-shadow 0.3s ease;
    text-shadow: 0 0 5px #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.social-icons a:hover {
    color: #ff4c4c;
    text-shadow:
        0 0 10px #ff4c4c,
        0 0 20px #ff4c4c;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .signup-container {
        max-width: 100%;
        padding: 1.5rem 1.75rem;
    }

    .signup-container h2,
    .contact-section h2 {
        font-size: 1.5rem;
    }

    .social-icons {
        gap: 1rem;
        font-size: 1.5rem;
    }
}
