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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Cantarell', sans-serif;
    background: linear-gradient(180deg, #1a1d2e 0%, #0f1119 100%);
    color: #ffffff;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

.container {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 2rem 1.5rem;
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
}

.content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    padding: 2rem 0;
}

/* Icon Styles */
.icon-container {
    margin-bottom: 3rem;
    animation: fadeInDown 0.8s ease-out;
}

.scan-frame {
    width: 300px;
    height: 300px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.scan-svg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.scan-circle-solid {
    fill: none;
    stroke: rgba(45, 51, 70, 0.8);
    stroke-width: 2;
}

.scan-circle-dashed {
    fill: none;
    stroke: #9b87f5;
    stroke-width: 3;
    stroke-dasharray: 12 8;
    opacity: 0.7;
    animation: rotate 20s linear infinite;
    transform-origin: center;
}

/* Corner brackets */
.corner-bracket {
    position: absolute;
    width: 50px;
    height: 50px;
    border: 3px solid #9b87f5;
    border-radius: 8px;
}

.corner-bracket.top-left {
    top: 0;
    left: 0;
    border-right: none;
    border-bottom: none;
}

.corner-bracket.top-right {
    top: 0;
    right: 0;
    border-left: none;
    border-bottom: none;
}

.corner-bracket.bottom-left {
    bottom: 0;
    left: 0;
    border-right: none;
    border-top: none;
}

.corner-bracket.bottom-right {
    bottom: 0;
    right: 0;
    border-left: none;
    border-top: none;
}

/* Logo in center */
.app-logo {
    width: 120px;
    height: 120px;
    object-fit: contain;
    position: relative;
    z-index: 2;
    border-radius: 28px;
    opacity: 0.9;
    transition: opacity 0.3s ease, transform 0.3s ease;
    mask-image: radial-gradient(circle, rgba(0,0,0,1) 50%, rgba(0,0,0,0.3) 100%);
    -webkit-mask-image: radial-gradient(circle, rgba(0,0,0,1) 50%, rgba(0,0,0,0.3) 100%);
}

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

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Typography */
.main-heading {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #ffffff;
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.subheading {
    font-size: 1.1rem;
    color: #a0a0b8;
    margin-bottom: 0.5rem;
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.description {
    font-size: 1rem;
    color: #7d7d94;
    margin-bottom: 2.5rem;
    max-width: 400px;
    line-height: 1.6;
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Form Styles */
.signup-form {
    width: 100%;
    max-width: 420px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    animation: fadeInUp 0.8s ease-out 0.5s both;
}

.input-group {
    width: 100%;
}

input[type="email"] {
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1rem;
    background: rgba(45, 51, 70, 0.6);
    border: 2px solid transparent;
    border-radius: 16px;
    color: #ffffff;
    outline: none;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

input[type="email"]::placeholder {
    color: #6b6b82;
}

input[type="email"]:focus {
    background: rgba(45, 51, 70, 0.8);
    border-color: #9b87f5;
    box-shadow: 0 0 0 4px rgba(155, 135, 245, 0.1);
}

input[type="email"]:invalid:not(:placeholder-shown) {
    border-color: #ff6b6b;
}

/* Button Styles */
.btn-primary {
    width: 100%;
    padding: 1.1rem 2rem;
    font-size: 1.1rem;
    font-weight: 600;
    background: linear-gradient(135deg, #9b87f5 0%, #7e69d6 100%);
    color: #000000;
    border: none;
    border-radius: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(155, 135, 245, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 32px rgba(155, 135, 245, 0.4);
}

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

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
}

.spinner {
    width: 20px;
    height: 20px;
    border: 3px solid rgba(0, 0, 0, 0.3);
    border-top-color: #000000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success Message */
.success-message {
    background: rgba(76, 175, 80, 0.15);
    border: 2px solid rgba(76, 175, 80, 0.5);
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 1rem;
    animation: fadeInScale 0.5s ease-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.success-message p {
    color: #4caf50;
    font-weight: 500;
}

.checkmark {
    width: 60px;
    height: 60px;
}

.checkmark-circle {
    stroke: #4caf50;
    stroke-width: 2;
    stroke-dasharray: 166;
    stroke-dashoffset: 166;
    animation: checkmark-circle 0.6s ease-out forwards;
}

.checkmark-check {
    stroke: #4caf50;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: checkmark-check 0.4s ease-out 0.4s forwards;
}

@keyframes checkmark-circle {
    to {
        stroke-dashoffset: 0;
    }
}

@keyframes checkmark-check {
    to {
        stroke-dashoffset: 0;
    }
}

/* Error Message */
.error-message {
    background: rgba(244, 67, 54, 0.15);
    border: 2px solid rgba(244, 67, 54, 0.5);
    border-radius: 16px;
    padding: 1.5rem;
    margin-top: 1rem;
    animation: shake 0.5s ease-out;
}

.error-message p {
    color: #f44336;
    font-weight: 500;
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-10px); }
    75% { transform: translateX(10px); }
}

/* Footer */
.footer {
    padding: 1.5rem 0;
    text-align: center;
    color: #6b6b82;
    font-size: 0.9rem;
}

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

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

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive Design */
@media (max-width: 480px) {
    .main-heading {
        font-size: 2rem;
    }
    
    .icon-container {
        margin-bottom: 2rem;
    }
    
    .scan-frame {
        width: 240px;
        height: 240px;
    }
    
    .corner-bracket {
        width: 40px;
        height: 40px;
    }
    
    .app-logo {
        width: 100px;
        height: 100px;
    }
    
    .container {
        padding: 1.5rem 1rem;
    }
}

@media (min-width: 768px) {
    .main-heading {
        font-size: 3rem;
    }
    
    .description {
        font-size: 1.1rem;
    }
}

