/* Signup Page Styles */

body {
    background-image: url('../images/background_2.jpg');
    background-size: 120%;
    background-position: center;
    background-attachment: scroll;
    background-repeat: no-repeat;
}

.auth-wrapper {
    position: relative;
    margin: 180px auto 40px;
    max-width: 500px;
    padding: 20px;
    z-index: 2;
}

.auth-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    padding: 40px;
    border-radius: 25px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2);
}

.auth-title {
    font-family: 'Insolente', Arial, sans-serif;
    font-size: 2.5rem;
    color: #000;
    font-weight: 900;
    text-align: center;
    margin-bottom: 10px;
}

.auth-subtitle {
    font-family: 'Gabarito', Arial, sans-serif;
    font-size: 0.95rem;
    color: #666;
    text-align: center;
    margin-bottom: 30px;
}

.avatar-selector {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 25px;
}

.emoji-label {
    font-family: 'Gabarito', Arial, sans-serif;
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 12px;
    font-weight: bold;
}

.avatar-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
    width: 100%;
    margin-bottom: 12px;
}

.avatar-option {
    position: relative;
    aspect-ratio: 1;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.15s, transform 0.15s;
}

.avatar-option img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%);
    transition: filter 0.15s;
}

.avatar-option:hover img {
    filter: grayscale(60%);
}

.avatar-tick {
    display: none;
    position: absolute;
    inset: 0;
    align-items: center;
    justify-content: center;
    background: rgba(0, 180, 80, 0.55);
    color: #fff;
    font-size: 1.6rem;
    font-weight: bold;
    pointer-events: none;
}

.avatar-option.selected {
    border-color: #2ecc71;
}

.avatar-option.selected .avatar-tick {
    display: flex;
}

.avatar-option.selected img {
    filter: grayscale(20%);
}

.avatar-confirm-btn {
    width: 100%;
    padding: 10px;
    background: #f5f5f5;
    border: 2px solid #ddd;
    border-radius: 10px;
    font-family: 'Gabarito', Arial, sans-serif;
    font-size: 0.9rem;
    color: #555;
    cursor: pointer;
    transition: all 0.2s;
}

.avatar-confirm-btn:hover {
    border-color: #9fbc99;
    color: #333;
}

.avatar-confirm-btn.confirmed {
    background: rgba(46, 204, 113, 0.1);
    border-color: #2ecc71;
    color: #1a8a4a;
    font-weight: bold;
}

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

.form-label {
    display: block;
    font-family: 'Gabarito', Arial, sans-serif;
    font-size: 0.9rem;
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
}

.form-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid rgba(159, 188, 153, 0.3);
    border-radius: 12px;
    font-family: 'Gabarito', Arial, sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.form-input:focus {
    outline: none;
    border-color: #9fbc99;
    box-shadow: 0 0 0 3px rgba(159, 188, 153, 0.2);
}

.error-message {
    background: rgba(255, 77, 77, 0.1);
    border: 2px solid rgba(255, 77, 77, 0.3);
    color: #d32f2f;
    padding: 12px 15px;
    border-radius: 12px;
    font-family: 'Gabarito', Arial, sans-serif;
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-align: center;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    background: #000;
    color: white;
    border: none;
    border-radius: 12px;
    font-family: 'Insolente', Arial, sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.submit-btn:hover {
    background: #333;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.auth-footer {
    text-align: center;
    margin-top: 25px;
    font-family: 'Gabarito', Arial, sans-serif;
    font-size: 0.9rem;
    color: #666;
}

.auth-footer a {
    color: #7ba075;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.2s ease;
}

.auth-footer a:hover {
    color: #9fbc99;
}

.optional-label {
    color: #aaa;
    font-size: 12px;
    font-weight: normal;
}

.required-star {
    color: #e74c3c;
    font-weight: normal;
}

.form-hint {
    font-size: 11px;
    color: #aaa;
    margin-top: 4px;
    font-family: 'Gabarito', Arial, sans-serif;
}

.city-autocomplete { position: relative; }

.city-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 2px solid rgba(159, 188, 153, 0.4);
    border-top: none;
    border-radius: 0 0 12px 12px;
    z-index: 200;
    max-height: 200px;
    overflow-y: auto;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.city-dropdown.open { display: block; }

.city-option {
    padding: 9px 14px;
    font-family: 'Gabarito', Arial, sans-serif;
    font-size: 13px;
    color: #333;
    cursor: pointer;
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

.city-option:last-child { border-bottom: none; }
.city-option:hover, .city-option.highlighted { background: rgba(159, 188, 153, 0.15); }

/* Mobile Responsive */
@media (max-width: 768px) {
    body {
        background-size: cover !important;
    }

    .auth-wrapper {
        margin: 120px auto 40px;
        padding: 15px;
    }

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

    .auth-title {
        font-size: 2rem;
    }

    .avatar-grid {
        grid-template-columns: repeat(5, 1fr);
        gap: 6px;
    }
}

/* ---- Username availability ---- */
.username-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.username-wrap .form-input {
    padding-right: 36px;
}
.username-status {
    position: absolute;
    right: 12px;
    font-size: 1rem;
    font-weight: bold;
    pointer-events: none;
}
.username-status.available { color: #2ecc71; }
.username-status.taken     { color: #e74c3c; }

/* ---- Password wrap + eye toggle ---- */
.pw-wrap {
    position: relative;
    display: flex;
    align-items: center;
}
.pw-wrap .form-input {
    padding-right: 54px;
}
.pw-eye {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    font-family: 'Gabarito', Arial, sans-serif;
    font-size: 0.78rem;
    color: #888;
    cursor: pointer;
    padding: 0;
    letter-spacing: 0.3px;
}
.pw-eye:hover { color: #333; }

/* ---- Password strength bar ---- */
.strength-bar-wrap {
    height: 4px;
    background: #eee;
    border-radius: 2px;
    margin-top: 6px;
    overflow: hidden;
}
.strength-bar {
    height: 100%;
    width: 0;
    border-radius: 2px;
    transition: width 0.3s, background 0.3s;
}
.strength-bar.weak   { width: 33%; background: #e74c3c; }
.strength-bar.medium { width: 66%; background: #f39c12; }
.strength-bar.strong { width: 100%; background: #2ecc71; }
.strength-label {
    font-family: 'Gabarito', Arial, sans-serif;
    font-size: 11px;
    margin-top: 3px;
    color: #aaa;
}

/* ---- Password match indicator ---- */
.pw-match {
    font-family: 'Gabarito', Arial, sans-serif;
    font-size: 11px;
    margin-top: 5px;
}
.pw-match.match-ok { color: #2ecc71; }
.pw-match.match-no { color: #e74c3c; }

/* ---- Mailing list opt-in ---- */
.mailing-opt-in {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    cursor: pointer;
    font-family: 'Gabarito', Arial, sans-serif;
    font-size: 0.88rem;
    color: #444;
}
.mailing-opt-in input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #7ba075;
    flex-shrink: 0;
    cursor: pointer;
}
