/* Registro Page Styles */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap');

@font-face {
    font-family: 'Vegan Style';
    src: url('/font/vegan_style_font.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #f5f3f0 0%, #e8e3dc 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    position: relative;
    overflow-x: hidden;
}

/* Animated Background */
.soft-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.floating-shapes {
    position: absolute;
    width: 100%;
    height: 100%;
}

.soft-blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.3;
    animation: float 15s ease-in-out infinite;
}

.blob-1 {
    width: 300px;
    height: 300px;
    background: linear-gradient(135deg, #c6a69b, #a07c71);
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.blob-2 {
    width: 250px;
    height: 250px;
    background: linear-gradient(135deg, #A1887F, #8D6E63);
    top: 60%;
    right: 15%;
    animation-delay: 5s;
}

.blob-3 {
    width: 200px;
    height: 200px;
    background: linear-gradient(135deg, #BCAAA4, #A1887F);
    bottom: 20%;
    left: 50%;
    animation-delay: 10s;
}

@keyframes float {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    33% {
        transform: translate(30px, -30px) scale(1.1);
    }
    66% {
        transform: translate(-20px, 20px) scale(0.9);
    }
}

/* Container */
.registro-container {
    width: 100%;
    max-width: 380px;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Card */
.registro-card {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(93,64,55,0.08);
    border: 1px solid rgba(255,255,255,0.5);
    overflow: hidden;
}

/* Header */
.registro-header {
    padding: 40px 40px 24px;
    text-align: center;
    border-bottom: none;
}

.logo-text {
    font-family: 'Vegan Style', cursive;
    font-size: 2rem;
    color: #5D4037;
    margin-bottom: 8px;
}

.subtitle {
    font-size: 15px;
    color: rgba(139,102,85,0.7);
    font-weight: 400;
}

/* Form */
.registro-form {
    padding: 40px;
}

.form-step {
    display: block;
}

.form-step.hidden {
    display: none;
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    font-weight: 600;
    color: #5D4037;
    margin-bottom: 8px;
    font-size: 0.9rem;
}

.form-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1.5px solid rgba(93, 64, 55, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    font-family: 'Poppins', sans-serif;
    transition: all 0.2s ease;
    background: white;
    color: #5D4037;
}

.form-group input:focus {
    outline: none;
    border-color: #5D4037;
    box-shadow: 0 0 0 4px rgba(93, 64, 55, 0.08);
}

.form-group input::placeholder {
    color: rgba(93, 64, 55, 0.4);
}

.form-group small {
    display: block;
    margin-top: 6px;
    font-size: 0.8rem;
    color: #8D6E63;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, #a07c71, #c6a69b);
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(93, 64, 55, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.btn-full {
    width: 100%;
}

/* Success Content */
.success-content {
    text-align: center;
}

.success-icon {
    color: #22c55e;
    margin-bottom: 20px;
}

.success-content h2 {
    color: #5D4037;
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.success-content p {
    color: #8D6E63;
    margin-bottom: 30px;
}

/* Activation Token Display */
.activation-token-display {
    background: rgba(93, 64, 55, 0.03);
    border: 1px solid rgba(93, 64, 55, 0.1);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.activation-token-display label {
    display: block;
    font-weight: 600;
    color: #5D4037;
    margin-bottom: 12px;
    font-size: 0.9rem;
}

.token-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background: white;
    border: 1px solid rgba(93, 64, 55, 0.2);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 12px;
}

.token-box code {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 0.85rem;
    color: #5D4037;
    word-break: break-all;
}

.btn-copy {
    background: rgba(93, 64, 55, 0.08);
    border: none;
    border-radius: 6px;
    padding: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #5D4037;
}

.btn-copy:hover {
    background: rgba(93, 64, 55, 0.15);
    transform: scale(1.05);
}

.activation-token-display small {
    color: #d32f2f;
    font-size: 0.8rem;
    display: block;
}

/* Footer */
.registro-footer {
    padding: 20px 40px 40px;
    text-align: center;
    border-top: 1px solid rgba(93, 64, 55, 0.08);
}

.registro-footer p {
    color: #8D6E63;
    font-size: 0.9rem;
}

.registro-footer a {
    color: #5D4037;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.registro-footer a:hover {
    color: #3d2620;
}

/* Loading Spinner */
.loading-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Responsive */
@media (max-width: 600px) {
    .registro-container {
        padding: 0;
        max-width: 100%;
    }

    .registro-card {
        border-radius: 0;
        box-shadow: none;
        background: rgba(255, 255, 255, 0.98);
        min-height: 100vh;
        display: flex;
        flex-direction: column;
    }

    .registro-header {
        padding: 24px 20px 16px;
    }

    .logo-text {
        font-size: 1.8rem;
    }

    .registro-form {
        padding: 24px 20px;
        flex: 1;
    }

    .registro-footer {
        padding: 16px 20px 24px;
    }
}
