:root {
    --black: #0A0A0A;
    --dark-purple: #1A0A2E;
    --purple: #4B2E83;
    --light-purple: #6A4C93;
    --accent: #5D3FD3;
    --white: #FFFFFF;
    --gray-text: rgba(255, 255, 255, 0.8);
    --dark-gray-card: rgba(20, 20, 20, 0.7);
    --border-color: rgba(75, 46, 131, 0.3);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--black);
    color: var(--white);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: 
        radial-gradient(circle at 10% 20%, var(--dark-purple) 0%, transparent 20%),
        radial-gradient(circle at 90% 80%, var(--purple) 0%, transparent 20%);
    overflow-x: hidden;
}

header {
    background-color: rgba(10, 10, 10, 0.8);
    backdrop-filter: blur(8px);
    padding: 1rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

@keyframes glow-purple {
    from { text-shadow: 0 0 10px rgba(75, 46, 131, 0.3); }
    to { text-shadow: 0 0 20px rgba(75, 46, 131, 0.6), 0 0 30px rgba(75, 46, 131, 0.4); }
}

.join-btn {
    background: linear-gradient(90deg, var(--purple), var(--dark-purple));
    padding: 0.7rem 1.5rem;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none;
    color: var(--white);
}

.join-btn:hover {
    background: linear-gradient(90deg, var(--light-purple), var(--purple));
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(75, 46, 131, 0.3);
}

.join-container {
    display: flex;
    flex: 1;
    padding: 2rem;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 0;
}

.fish-container {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    height: 70vh;
    z-index: -1;
}

.fish-image {
    height: 100%;
    width: auto;
    max-width: none;
    object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(75, 46, 131, 0.7));
    animation: float 6s ease-in-out infinite;
}

.fish-label {
    position: absolute;
    right: 20px;
    top: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5);
}

.content {
    flex: 0 0 500px;
    padding: 2.5rem;
    text-align: center;
    background: rgba(10, 10, 10, 0.7);
    border-radius: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    position: relative;
    left: 0px;
    margin-right: -30px;
}

.title {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    background: linear-gradient(90deg, var(--light-purple), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    text-shadow: 0 0 10px rgba(93, 63, 211, 0.3);
}

.form-group {
    margin-bottom: 1.5rem;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--gray-text);
    font-weight: 500;
}

input {
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    background: rgba(20, 20, 20, 0.5);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--white);
    transition: all 0.2s;
}

input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(93, 63, 211, 0.3);
}

.btn {
    background: linear-gradient(90deg, var(--accent), var(--purple));
    color: var(--white);
    font-weight: 700;
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s;
    display: block;
    width: 100%;
    margin-top: 1rem;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.btn:hover {
    background: linear-gradient(90deg, var(--purple), var(--accent));
    box-shadow: 0 10px 25px rgba(93, 63, 211, 0.4);
}

.btn:disabled {
    background: linear-gradient(90deg, #3a3a3a, #2a2a2a);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
    box-shadow: none;
    transform: none !important;
}

.result {
    margin-top: 1rem;
    font-size: 1rem;
    min-height: 1.5rem;
    padding: 0.5rem;
    border-radius: 6px;
    text-align: center;
}

.success {
    background-color: rgba(76, 175, 80, 0.2);
    color: #4CAF50;
}

.error {
    background-color: rgba(244, 67, 54, 0.2);
    color: #F44336;
}

.info {
    background-color: rgba(33, 150, 243, 0.2);
    color: #2196F3;
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow: hidden;
}

.modal-content {
    background: rgba(10, 10, 10, 0.9);
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 20px;
    max-width: 800px;
    width: 90%;
    height: 80vh;
    display: flex;
    flex-direction: column;
    position: relative;
    border: 1px solid var(--border-color);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
}

.modal-header {
    margin-bottom: 1.5rem;
    text-align: center;
    flex-shrink: 0;
}

.modal-title {
    font-size: 1.8rem;
    color: var(--white);
    margin-bottom: 1rem;
    text-shadow: 0 0 10px rgba(93, 63, 211, 0.3);
}

.modal-body {
    text-align: left;
    line-height: 1.6;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) rgba(20, 20, 20, 0.5);
    padding: 1rem;
    background-color: rgba(20, 20, 20, 0.5);
    border-radius: 8px;
    flex-grow: 1;
    margin-bottom: 1rem;
}

.modal-body::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

.modal-body::-webkit-scrollbar-track {
    background: rgba(20, 20, 20, 0.5);
    border-radius: 10px;
    margin: 5px 0;
}

.modal-body::-webkit-scrollbar-thumb {
    background-color: var(--accent);
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.2);
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background-color: var(--light-purple);
}

.modal-body p {
    margin-bottom: 1rem;
    position: relative;
    color: var(--gray-text);
}

.modal-body p:first-child {
    font-size: 1.1rem;
    color: var(--accent);
    margin-bottom: 1.5rem;
}

.modal-footer {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    flex-shrink: 0;
}

.agree-checkbox {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
    gap: 8px;
}

.agree-checkbox input[type="checkbox"] {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    width: 16px;
    min-height: 20px;
    min-width: 20px;
    border: 2px solid var(--border-color);
    border-radius: 3px;
    outline: none;
    cursor: pointer;
    position: relative;
    transition: all 0.2s;
    background-color: rgba(20, 20, 20, 0.5);
    margin: 0;
    padding: 0;
    flex-shrink: 0;
}

.agree-checkbox input[type="checkbox"]:checked {
    background-color: var(--accent);
    border-color: var(--accent);
}

.agree-checkbox input[type="checkbox"]:checked::after {
    content: "✔";
    position: absolute;
    color: white;
    font-size: 10px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    line-height: 1;
}

.agree-checkbox input[type="checkbox"]:hover {
    border-color: var(--light-purple);
}

.agree-checkbox label {
    margin-top: 6px;
    margin-left: 3px;
    cursor: pointer;
    transition: color 0.2s;
    color: var(--gray-text);
    user-select: none;
    font-size: 16px;
}

.agree-checkbox label:hover {
    color: var(--white);
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.5rem;
    cursor: pointer;
    width: auto;
    padding: 0;
    transition: all 0.2s;
}

.modal-close:hover {
    color: var(--accent);
    transform: scale(1.1);
}

@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(2deg); }
}

@media (max-width: 1024px) {
    .join-container {
        justify-content: center;
        padding: 2rem 1rem;
    }
    .content {
        margin-right: 0;
        flex: 0 0 450px;
    }
    .fish-container {
        width: 35%;
    }
    .title { font-size: 2.2rem; }
}

@media (max-width: 768px) {
    .join-container {
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 1rem;
    }
    .fish-container {
        position: relative;
        width: 100%;
        height: 200px;
        margin-bottom: 1rem;
    }
    .fish-image {
        height: 100%;
        width: auto;
    }
    .content {
        flex: 1;
        width: 100%;
        max-width: 500px;
        padding: 1.5rem;
        left: 0;
        margin-right: 0;
    }
    .title { font-size: 2rem; }
}

@media (max-width: 480px) {
    header { flex-direction: column; padding: 1rem; }
    nav { margin-top: 1rem; flex-wrap: wrap; justify-content: center; gap: 1rem; }
    .logo { font-size: 1.5rem; }
    .content { padding: 1.25rem; }
    .title { font-size: 1.8rem; }
    .btn { font-size: 1rem; padding: 0.8rem 2rem; }
    .modal-content {
        padding: 1.5rem;
        width: 95%;
        height: 85vh;
    }
    .modal-title {
        font-size: 1.5rem;
    }
}