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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
    min-height: 100vh;
    color: #f0f0f0;
    overflow-x: hidden;
}

.signup-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    position: relative;
    z-index: 10;
}

.signup-form {
    background: rgba(15, 15, 15, 0.95);
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(64, 64, 64, 0.3);
    width: 100%;
    max-width: 500px;
    animation: slideInUp 0.8s ease-out;
    position: relative;
}

@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.logo-container {
    text-align: center;
    margin-bottom: 30px;
}

.logo {
    width: 240px;
    height: auto;
    opacity: 0.9;
    transition: all 0.3s ease;
    filter: invert(1);
}

.logo:hover {
    opacity: 1;
    transform: scale(1.05);
}

.signup-form h1 {
    text-align: center;
    margin-bottom: 10px;
    font-size: 32px;
    font-weight: 700;
    color: #cccccc;
}

.subtitle {
    text-align: center;
    margin-bottom: 40px;
    color: #888888;
    font-size: 16px;
}

.form-step {
    display: none;
    animation: fadeIn 0.5s ease-in;
}

.form-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

.form-group {
    margin-bottom: 25px;
    position: relative;
}

.form-group input {
    width: 100%;
    padding: 18px 20px;
    border: 2px solid rgba(64, 64, 64, 0.3);
    border-radius: 12px;
    font-size: 16px;
    background: rgba(0, 0, 0, 0.4);
    color: #f0f0f0;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.form-group input::placeholder {
    color: #666666;
}

.form-group input:focus {
    outline: none;
    border-color: #777777;
    background: rgba(0, 0, 0, 0.6);
    box-shadow: 0 0 0 4px rgba(119, 119, 119, 0.3);
    transform: scale(1.02);
}

.form-group input:valid {
    border-color: #4a4a4a;
}

.input-feedback {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 8px 20px;
    font-size: 14px;
    border-radius: 0 0 8px 8px;
    transition: all 0.3s ease;
    transform: translateY(-10px);
    opacity: 0;
}

.input-feedback.show {
    transform: translateY(0);
    opacity: 1;
}

.input-feedback.valid {
    background: rgba(80, 80, 80, 0.3);
    color: #888888;
    border: 1px solid rgba(80, 80, 80, 0.4);
}

.input-feedback.invalid {
    background: rgba(60, 60, 60, 0.3);
    color: #cccccc;
    border: 1px solid rgba(60, 60, 60, 0.4);
}

.btn-primary,
.btn-secondary {
    padding: 16px 32px;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: linear-gradient(135deg, #2a2a2a 0%, #444444 100%);
    color: #f0f0f0;
    width: 100%;
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(68, 68, 68, 0.4);
}

.btn-primary:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.btn-secondary {
    background: rgba(64, 64, 64, 0.3);
    color: #f0f0f0;
    border: 2px solid rgba(64, 64, 64, 0.4);
}

.btn-secondary:hover {
    background: rgba(80, 80, 80, 0.4);
    transform: translateY(-2px);
}

.form-actions {
    display: flex;
    gap: 15px;
}

.form-actions .btn-secondary {
    flex: 1;
}

.form-actions .btn-primary {
    flex: 2;
}

.success-message {
    text-align: center;
    padding: 20px;
}

.checkmark-animation {
    margin: 20px 0;
}

.checkmark {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: block;
    stroke-width: 3;
    stroke: #888888;
    stroke-miterlimit: 10;
    margin: 20px auto;
    animation: checkmark-fill 0.4s ease-in-out 0.4s forwards, checkmark-scale 0.3s ease-in-out 0s both;
}

.checkmark__circle {
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    stroke-width: 3;
    stroke-miterlimit: 10;
    stroke: #888888;
    fill: none;
    animation: checkmark-stroke 0.6s cubic-bezier(0.65, 0, 0.45, 1) forwards;
}

.checkmark__check {
    transform-origin: 50% 50%;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: checkmark-stroke 0.3s cubic-bezier(0.65, 0, 0.45, 1) 0.8s forwards;
}

@keyframes checkmark-stroke {
    100% {
        stroke-dashoffset: 0;
    }
}

@keyframes checkmark-scale {
    0%, 100% {
        transform: none;
    }
    50% {
        transform: scale3d(1.1, 1.1, 1);
    }
}

@keyframes checkmark-fill {
    100% {
        box-shadow: inset 0px 0px 0px 30px #888888;
    }
}

.success-message h2 {
    color: #888888;
    font-size: 28px;
    margin: 20px 0 10px;
}

.success-message p {
    color: #aaaaaa;
    font-size: 16px;
    margin-bottom: 30px;
}

.loading-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(15, 15, 15, 0.9);
    display: none;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.loading-overlay.show {
    display: flex;
}

.loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid rgba(85, 85, 85, 0.3);
    border-top: 4px solid #555555;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Background Animation */
.background-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

.floating-shapes {
    position: relative;
    width: 100%;
    height: 100%;
}

.shape {
    position: absolute;
    background: linear-gradient(135deg, rgba(64, 64, 64, 0.1) 0%, rgba(85, 85, 85, 0.1) 100%);
    border-radius: 50%;
    animation: float 20s infinite linear;
}

.shape-1 {
    width: 100px;
    height: 100px;
    top: 20%;
    left: 10%;
    animation-delay: 0s;
}

.shape-2 {
    width: 60px;
    height: 60px;
    top: 60%;
    left: 80%;
    animation-delay: -5s;
}

.shape-3 {
    width: 80px;
    height: 80px;
    top: 10%;
    left: 70%;
    animation-delay: -10s;
}

.shape-4 {
    width: 120px;
    height: 120px;
    top: 70%;
    left: 20%;
    animation-delay: -15s;
}

.shape-5 {
    width: 40px;
    height: 40px;
    top: 40%;
    left: 60%;
    animation-delay: -7s;
}

@keyframes float {
    0% {
        transform: translateY(0px) rotate(0deg);
        opacity: 0;
    }
    10% {
        opacity: 0.8;
    }
    90% {
        opacity: 0.8;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .signup-container {
        padding: 10px;
    }
    
    .signup-form {
        padding: 25px 20px;
        margin: 0;
        max-width: 100%;
        border-radius: 15px;
    }
    
    .logo {
        width: 180px;
        max-width: 85%;
    }
    
    .signup-form h1 {
        font-size: 26px;
        margin-bottom: 8px;
    }
    
    .subtitle {
        font-size: 15px;
        margin-bottom: 30px;
    }
    
    .form-group input {
        padding: 16px 18px;
        font-size: 16px;
    }
    
    .form-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .form-actions .btn-secondary,
    .form-actions .btn-primary {
        flex: none;
        width: 100%;
        padding: 14px 24px;
        font-size: 15px;
    }
    
    .success-message h2 {
        font-size: 24px;
    }
    
    .success-message p {
        font-size: 15px;
    }
    
    .checkmark {
        width: 70px;
        height: 70px;
    }
}

@media (max-width: 480px) {
    .signup-form {
        padding: 20px 15px;
        border-radius: 12px;
    }
    
    .logo {
        width: 160px;
        max-width: 80%;
    }
    
    .signup-form h1 {
        font-size: 24px;
    }
    
    .subtitle {
        font-size: 14px;
    }
    
    .form-group input {
        padding: 14px 16px;
        font-size: 15px;
    }
    
    .btn-primary,
    .btn-secondary {
        padding: 12px 20px;
        font-size: 14px;
    }
    
    .success-message h2 {
        font-size: 22px;
    }
    
    .already-subscribed-message h2 {
        font-size: 1.8rem;
    }
    
    .checkmark {
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 320px) {
    .signup-form {
        padding: 15px 12px;
    }
    
    .logo {
        width: 140px;
        max-width: 75%;
    }
    
    .signup-form h1 {
        font-size: 22px;
    }
    
    .form-group input {
        padding: 12px 14px;
        font-size: 14px;
    }
}

/* Already subscribed message styles */
.already-subscribed-message {
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
}

.info-icon {
    margin-bottom: 20px;
    animation: bounce 1s ease-out;
}

.already-subscribed-message h2 {
    color: #f39c12;
    margin-bottom: 20px;
    font-size: 2rem;
}

.already-subscribed-message p {
    color: #ccc;
    line-height: 1.6;
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.already-subscribed-message strong {
    color: #fff;
    font-weight: 600;
}

.success-detail {
    color: #999 !important;
    font-size: 1rem !important;
    margin-top: 10px;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Go back button styles */
.go-back-container {
    text-align: center;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.go-back-btn {
    color: #999;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.3s ease;
    display: inline-block;
    padding: 8px 16px;
    border-radius: 6px;
}

.go-back-btn:hover {
    color: #6a5acd;
    background: rgba(106, 90, 205, 0.1);
    transform: translateX(-3px);
}
