body {
    margin: 0;
    padding: 0;
    background-color: black;
    font-family: Arial, sans-serif;
    color: #fff;
}


.register-container {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

}

form {
    background-color: rgba(0,0,0,0.6);
    /*border: 1px solid #444;*/
    border-radius: 8px;
    padding: 20px;
    width: 100%;
    max-width: 520px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

form h2 {
    margin-bottom: 20px;
    text-align: center;
    font-weight: 700;
}


form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #ddd;
}

form input,
form select {
    width: 100%;
    height: 45px;
    margin-bottom: 15px;
    padding: 0 10px;
    border: none;
    border-radius: 6px;
    background-color: #333;
    color: #fff;
    font-size: 14px;
    outline: none;
    box-sizing: border-box;
}

form input::placeholder {
    color: #aaa;
}


form input:focus,
form select:focus {
    border: 2px solid #04ca04;
    background-color: #2c2b29;
}


form select {
    background-color: #333;
    cursor: pointer;
}


form button[type="submit"] {
    display: block;
    width: 100%;
    height: 50px;
    background-color: #04ca04;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s;
}

form button[type="submit"]:hover {
    background-color: #12f512;
}


.already-member {
    text-align: center;
    margin-top: 20px;
    color: #ddd;
    font-size: 14px;
}

.already-member a {
    color: #04ca04;
    text-decoration: none;
    font-weight: 600;
}
.already-member a:hover {
    text-decoration: underline;
}


.error-message {
    margin-bottom: 15px;
    color: #ff6868;
    font-weight: 600;
    text-align: center;
}

.form-section {
    background-color: rgba(255,255,255,0.05);
    padding: 18px 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    border-left: 4px solid #04ca04;
}

.section-title {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 16px;
    font-weight: 700;
    color: #04ca04;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 6px;
}
.nickname-row {
    display: flex;
    align-items: center;
    gap: 8px;
    /*margin-bottom: 15px;*/
}

.nickname-row input {
    flex: 1 1 70%;
    min-width: 0;
    height: 40px;
}

.nickname-row button {
    flex: 0 0 30%;
    height: 40px;
    margin-bottom: 15px;
    /*padding: 0 10px;*/
    background-color: #04ca04;
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s;
    white-space: nowrap;
}

#nickCheckResult{
    padding-bottom: 8px;
}

.nickname-valid {
    color: #04ca04;
}

.nickname-invalid {
    color: #ff6868;
}

.nickname-row button:hover {
    background-color: #12f512;
}

.nickname-row span {
    flex: 0 0 25%;
    font-size: 13px;
    color: #ccc;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 20px;
    text-align: left;
    display: inline-block;
}
.job-select-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
    gap: 8px;
    margin-bottom: 15px;
    justify-content: center;
}

.job-option {
    position: relative;
    border: 2px solid transparent;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.05);
    text-align: center;
    padding: 8px 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    aspect-ratio: 1 / 1; /* 정사각형 유지 */
    box-sizing: border-box;
}

.job-option input[type="radio"] {
    display: none;
}

.job-option img {
    width: 100%;
    height: auto;
    max-width: 50px;
    max-height: 50px;
    object-fit: contain;
    margin-bottom: 4px;
}

.job-option span {
    font-size: 12px;
    color: #ccc;
    display: block;
    line-height: 1.2;
}

.job-option:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: #666;
}

.job-option input[type="radio"]:checked ~ span {
    color: #04ca04;
    font-weight: bold;
}

.job-option:has(input[type="radio"]:checked) {
    border-color: #04ca04;
    background-color: rgba(4, 202, 4, 0.08);
}



.input-valid {
    border: 2px solid #04ca04 !important;
}


.input-invalid {
    border: 2px solid #ff6868 !important;
}


.nickname-valid {
    color: #04ca04;
    font-weight: bold;
}

.nickname-invalid {
    color: #ff6868;
    font-weight: bold;
}



.nickname-row {
    display: flex;
    align-items: center;
    gap: 8px;
}


.nickname-row input {
    flex: 1 1 auto;
    height: 40px;
}


.check-result-span {
    flex: 0 0 auto;
    font-weight: bold;
    min-width: 60px;
}

@media (max-width: 768px) {
    form {
        width: 80%;
        padding: 15px;
    }

    form label{
        font-size: 0.8rem;
    }
    form button[type="submit"] {
        font-size: 1.2rem;
        height: 48px;
    }

    .nickname-row button {
        font-size: 1.2rem;
    }

    @media (min-width: 768px) {
        .job-select-group {
            grid-template-columns: repeat(5, 1fr);
        }
    }

    .nickname-row span {
        flex: 0 0 35%;
    }

    /*@media (max-width: 767px) {*/
    /*    .job-select-group {*/
    /*        grid-template-columns: repeat(3, 1fr);*/
    /*    }*/
    /*}*/

    /*@media (max-width: 480px) {*/
    /*    .job-select-group {*/
    /*        grid-template-columns: repeat(2, 1fr);*/
    /*    }*/
    /*}*/
}