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

body {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #f8fafc;
    color: #020617;
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

.register-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 28px;
    padding: 28px;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
}

.logo {
    margin-bottom: 24px;
}

.logo::before {
    content: "";
    display: inline-flex;
    width: 52px;
    height: 52px;
    margin-bottom: 16px;
    border-radius: 18px;
    background: #181818 url("/icons/icon-192-v2.png") center / cover no-repeat;
}

.logo h1 {
    color: #020617;
    margin-bottom: 8px;
    font-size: 28px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: 0;
}

.logo p {
    color: #64748b;
    font-size: 15px;
    font-weight: 600;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #334155;
    font-size: 13px;
    font-weight: 800;
}

.form-group input {
    width: 100%;
    min-height: 48px;
    padding: 12px 14px;
    border: 1px solid #dbe3ef;
    border-radius: 16px;
    background: #f8fafc;
    color: #020617;
    font-size: 16px;
    font-weight: 700;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-group input:focus {
    outline: none;
    border-color: #059669;
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(5, 150, 105, 0.12);
}

.btn-primary {
    width: 100%;
    min-height: 50px;
    margin-top: 4px;
    border: 0;
    border-radius: 18px;
    background: #059669;
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.btn-primary:hover {
    background: #047857;
    transform: translateY(-1px);
}

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

.resend-btn {
    margin-top: 10px;
    border: 0;
    background: transparent;
    color: #059669;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
}

.resend-btn:disabled {
    color: #94a3b8;
    cursor: not-allowed;
}

.message {
    padding: 12px 14px;
    border-radius: 16px;
    margin-bottom: 18px;
    font-size: 14px;
    font-weight: 700;
}

.message.success {
    background: #ecfdf5;
    color: #047857;
    border: 1px solid #bbf7d0;
}

.message.error {
    background: #fff1f2;
    color: #be123c;
    border: 1px solid #fecdd3;
}

.links {
    margin-top: 20px;
    text-align: center;
}

.links a {
    color: #059669;
    text-decoration: none;
    font-size: 14px;
    font-weight: 800;
}

.links a:hover {
    color: #047857;
}

.loader {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #059669;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

@media (max-width: 480px) {
    body {
        align-items: flex-start;
        padding: 18px;
    }

    .register-card {
        padding: 24px;
    }
}
