@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #4AADF5 0%, #2E86C1 100%);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    transform: scale(0.87);
}

.signup-container {
    width: 100%;
    max-width: 1200px;
    transform-origin: top center;
    transition: transform 0.3s ease;
}

@media (max-width: 1400px) {
    .signup-container {
        transform: scale(0.97);
    }
}

@media (max-width: 1200px) {
    .signup-container {
        transform: scale(0.94);
    }
}

@media (max-width: 992px) {
    .signup-container {
        transform: scale(0.9);
    }
}

.signup-card {
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
    position: relative;
}

.header-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #2E86C1 0%, #1B5E8C 100%);
    padding: 15px 30px;
}

.header {
    flex: 1;
    display: flex;
    justify-content: flex-start;
}

.logo {
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo-image {
    height: 40px;
    width: auto;
    filter: brightness(1);
}

.close-button {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.close-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.content-wrapper {
    display: flex;
    min-height: 500px;
}

.penguin-section {
    flex: 1;
    background: linear-gradient(135deg, #E8F6FF 0%, #CCE7FF 100%);
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.penguin-image {
    width: 200px;
    height: auto;
    margin-bottom: 20px;
    filter: drop-shadow(0 5px 15px rgba(0, 0, 0, 0.1));
}

.form-section {
    flex: 1;
    padding: 30px;
    background: #FAFBFC;
}

.step-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    border-left: 4px solid #4AADF5;
}

.step-number {
    background: #4AADF5;
    color: white;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    position: absolute;
    top: -15px;
    left: 20px;
}

.step-content {
    margin-top: 10px;
}

.step-content h3 {
    color: #2C3E50;
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 15px 0;
}

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

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #E1E8ED;
    border-radius: 8px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    transition: all 0.3s ease;
    background: white;
}

.form-group input:focus {
    outline: none;
    border-color: #4AADF5;
    box-shadow: 0 0 0 3px rgba(74, 173, 245, 0.1);
}

.form-group input.invalid {
    border-color: #E74C3C;
}

.form-group input.invalid:focus {
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.1);
}

.feedback {
    color: #E74C3C;
    font-size: 12px;
    margin-top: 5px;
    font-weight: 500;
}

.username-rules,
.email-info {
    margin-top: 10px;
}

.username-rules p,
.email-info p,
.password-requirement {
    font-size: 11px;
    color: #7F8C8D;
    margin: 2px 0;
    line-height: 1.4;
}

.password-requirement {
    margin-top: 10px;
}

.terms-section {
    background: white;
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 15px;
}

.checkbox-group:last-child {
    margin-bottom: 0;
}

.checkbox-group input[type="checkbox"] {
    margin-top: 2px;
    width: 16px;
    height: 16px;
    accent-color: #4AADF5;
}

.checkbox-group label {
    font-size: 12px;
    color: #34495E;
    line-height: 1.4;
    flex: 1;
}

.link {
    color: #4AADF5;
    text-decoration: none;
    font-weight: 500;
}

.link:hover {
    text-decoration: underline;
}

.next-button {
    background: linear-gradient(135deg, #4AADF5 0%, #2E86C1 100%);
    color: white;
    border: none;
    padding: 15px 30px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 100%;
    box-shadow: 0 4px 15px rgba(74, 173, 245, 0.3);
}

.next-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(74, 173, 245, 0.4);
}

.step-1 { border-left-color: #4AADF5; }
.step-2 { border-left-color: #5ae179; }
.step-3 { border-left-color: #9B59B6; }
.step-4 { border-left-color: #E67E22; }

.step-2 .step-number { background: #5ae179; }
.step-3 .step-number { background: #9B59B6; }
.step-4 .step-number { background: #E67E22; }

.color-selection {
    margin-bottom: 0;
}

.color-selection h4 {
    color: #2C3E50;
    font-size: 14px;
    font-weight: 600;
    margin: 0 0 10px 0;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(8, 1fr);
    gap: 8px;
    margin-bottom: 15px;
}

.color-option {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.color-option:hover {
    transform: scale(1.1);
    border-color: #4AADF5;
}

.color-option.selected {
    border-color: #2E86C1;
    transform: scale(1.2);
    box-shadow: 0 0 10px rgba(46, 134, 193, 0.5);
}

.success-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    animation: fadeIn 0.3s ease;
    transform: none !important;
}

body.success-open {
    overflow: hidden;
}

.success-content {
    background: white;
    padding: 50px;
    border-radius: 20px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    margin: 20px;
    animation: popIn 0.4s ease cubic-bezier(0.34, 1.56, 0.64, 1);
    font-family: 'Poppins', sans-serif;
}

.success-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, #27AE60 0%, #1E8449 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 45px;
    font-weight: bold;
    margin: 0 auto 25px auto;
    box-shadow: 0 8px 20px rgba(39, 174, 96, 0.35);
}

.success-content h2 {
    color: #2C3E50;
    margin-bottom: 15px;
    font-size: 28px;
    font-weight: 700;
}

.success-content p {
    color: #7F8C8D;
    margin-bottom: 30px;
    line-height: 1.6;
    font-size: 16px;
}

.success-button {
    background: linear-gradient(135deg, #4AADF5 0%, #2E86C1 100%);
    color: white;
    border: none;
    padding: 14px 40px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 18px rgba(74, 173, 245, 0.3);
}

.success-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(74, 173, 245, 0.4);
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes popIn {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@media (max-width: 768px) {
    body {
        background: #4AADF5;
        margin: 0;
        padding: 0;
        display: flex;
        justify-content: center;
        align-items: flex-start;
        overflow-x: hidden;
        overflow-y: auto;
    }

    .signup-container {
        transform: none !important;
        width: 100%;
        max-width: 100%;
        padding: 10px;
        margin-top: 0;
    }

    .content-wrapper {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .penguin-section {
        width: 100%;
        padding: 60px 20px 30px 20px;
        background: linear-gradient(135deg, #E8F6FF 0%, #CCE7FF 100%);
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        overflow: visible;
    }

    .penguin-image {
        width: 140px;
        height: auto;
        object-fit: contain;
        margin: 0 auto 20px auto;
    }

    .form-section {
        width: 100%;
        padding: 20px;
    }

    .step-card {
        width: 100%;
        box-sizing: border-box;
    }

    .next-button {
        font-size: 14px;
        padding: 12px;
        width: 100%;
    }

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

    .color-option {
        width: 25px;
        height: 25px;
    }
}

@media (max-width: 480px) {
    .header { padding: 10px 20px; }
    .logo-image { height: 35px; }
    .penguin-image { width: 120px; }
    .step-content h3 { font-size: 14px; }
    .username-rules p, .email-info p { font-size: 10px; }
    .step-card { padding: 12px; }
}