:root {
    --primary-color: #3a96ff;
    --secondary-color: #7b2cbf;
    --background-color: #0a0a0a;
    --text-color: #ffffff;
    --accent-color: #2ddcff;
    --card-background-color: rgb(23, 42, 80);
    --card-background-color-hover: rgb(35, 65, 127);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Tauri', 'Space Grotesk', sans-serif;
    background-color: var(--background-color);
    color: var(--text-color);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Subtle animated background */
body::before {
    content: '';
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: radial-gradient(ellipse at 20% 50%, rgba(58, 150, 255, 0.04) 0%, transparent 60%),
                radial-gradient(ellipse at 80% 20%, rgba(45, 220, 255, 0.03) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

main {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s;
}

.signup-container {
    width: 100%;
    max-width: 560px;
}

.signup-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.signup-header .icon-ring {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    border: 1.5px solid rgba(58, 150, 255, 0.4);
    background: rgba(58, 150, 255, 0.07);
    margin-bottom: 1.5rem;
    font-size: 1.8rem;
    color: var(--primary-color);
}

.signup-header h1 {
    color: var(--text-color);
    font-size: 2rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
}

.signup-header h1 span {
    color: var(--primary-color);
}

.signup-header p {
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.95rem;
    max-width: 380px;
    margin: 0 auto;
}

.signup-card {
    background: var(--card-background-color);
    border-radius: 12px;
    padding: 2.5rem;
    border: 1px solid rgba(58, 150, 255, 0.12);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.input-wrapper i {
    position: absolute;
    left: 1rem;
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.9rem;
    pointer-events: none;
    transition: color 0.2s;
}

.form-group input {
    width: 100%;
    padding: 0.85rem 1rem 0.85rem 2.75rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    color: var(--text-color);
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s, background 0.2s;
    outline: none;
}

.form-group input:focus {
    border-color: var(--primary-color);
    background: rgba(58, 150, 255, 0.06);
}

.form-group input:focus + i,
.input-wrapper:focus-within i {
    color: var(--primary-color);
}

.input-wrapper i {
    /* reorder so icon is on top of input */
    z-index: 1;
}

.form-group input::placeholder {
    color: rgba(255, 255, 255, 0.25);
}

.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1.75rem 0;
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.note {
    text-align: center;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.82rem;
    margin-bottom: 1.5rem;
}

.submit-btn {
    width: 100%;
    padding: 0.95rem;
    background: var(--primary-color);
    color: var(--background-color);
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.2s, transform 0.15s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
}

.submit-btn:hover {
    background-color: var(--accent-color);
    transform: translateY(-1px);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* Message states */
.message {
    margin-top: 1.25rem;
    padding: 0.9rem 1.2rem;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
    display: none;
    animation: fadeIn 0.3s ease;
}

.message.success {
    background: rgba(45, 220, 100, 0.12);
    border: 1px solid rgba(45, 220, 100, 0.3);
    color: #2ddc64;
    display: block;
}

.message.error {
    background: rgba(255, 68, 68, 0.1);
    border: 1px solid rgba(255, 68, 68, 0.3);
    color: #ff6b6b;
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Success state */
.success-view {
    text-align: center;
    padding: 2rem 0;
    display: none;
}

.success-view .checkmark {
    font-size: 3rem;
    color: #2ddc64;
    margin-bottom: 1rem;
    display: block;
    animation: popIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes popIn {
    from { transform: scale(0); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.success-view h2 {
    color: var(--text-color);
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
}

.success-view p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.9rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 1.5rem;
    color: rgba(255, 255, 255, 0.2);
    font-size: 0.8rem;
    position: relative;
    z-index: 1;
}

@media (max-width: 480px) {
    .signup-card {
        padding: 1.75rem 1.25rem;
    }

    .signup-header h1 {
        font-size: 1.6rem;
    }
}
