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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.container {
    width: 100%;
    max-width: 400px;
}

.signup-form {
    background: white;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.logo-container {
    margin-bottom: 20px;
}

.logo {
    max-width: 80px;
    height: auto;
    display: block;
    margin: 0 auto;
}

h1 {
    color: #333;
    margin-bottom: 30px;
    font-size: 28px;
    font-weight: 600;
}

h2 {
    color: #4CAF50;
    margin-bottom: 20px;
    font-size: 24px;
}

.form-group {
    margin-bottom: 20px;
    text-align: left;
}

label {
    display: block;
    margin-bottom: 5px;
    color: #555;
    font-weight: 500;
}

input {
    width: 100%;
    padding: 12px;
    border: 2px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    transition: border-color 0.3s ease;
}

input:focus {
    outline: none;
    border-color: #667eea;
}

input:invalid {
    border-color: #ff6b6b;
}

input.valid {
    border-color: #28a745;
}

input.invalid {
    border-color: #dc3545;
}

.field-hint {
    font-size: 12px;
    color: #6c757d;
    margin-top: 4px;
    margin-bottom: 4px;
    line-height: 1.4;
}

.field-error {
    font-size: 12px;
    color: #dc3545;
    margin-top: 4px;
    margin-bottom: 4px;
    line-height: 1.4;
    font-weight: 500;
    display: none;
}

.field-error.show {
    display: block;
}

button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

button:active {
    transform: translateY(0);
}

button:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

button:disabled:hover {
    transform: none;
    box-shadow: none;
}

.loading {
    padding: 40px 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
}

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

.success {
    padding: 40px 20px;
}

.app-links {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 30px;
}

.app-link {
    display: block;
    transition: transform 0.2s ease;
}

.app-link:hover {
    transform: scale(1.05);
}

.app-link img {
    width: 200px;
    height: auto;
}

.error {
    padding: 40px 20px;
    color: #ff6b6b;
}

.error button {
    background: #ff6b6b;
    margin-top: 20px;
    width: auto;
    padding: 10px 20px;
}

.hidden {
    display: none;
}

@media (max-width: 480px) {
    .signup-form {
        padding: 30px 20px;
    }

    .logo {
        max-width: 60px;
    }

    .app-link img {
        width: 160px;
    }
}
