<x-guest-layout>
    <style>
        .auth-heading {
            font-family: 'Syne', sans-serif;
            font-size: 26px;
            font-weight: 800;
            letter-spacing: -0.02em;
            color: #e8f4ff;
            margin-bottom: 6px;
        }

        .auth-subheading {
            font-size: 14px;
            color: #5a7a9a;
            margin-bottom: 32px;
            font-family: 'Syne', sans-serif;
        }

        .field-group {
            margin-bottom: 20px;
        }

        .field-label {
            display: block;
            font-family: 'Space Mono', monospace;
            font-size: 11px;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            color: #5a7a9a;
            margin-bottom: 8px;
        }

        .field-input {
            width: 100%;
            background: rgba(2, 5, 16, 0.8);
            border: 1px solid rgba(0, 245, 255, 0.15);
            border-radius: 10px;
            padding: 13px 16px;
            color: #e8f4ff;
            font-family: 'Syne', sans-serif;
            font-size: 15px;
            outline: none;
            transition: all 0.25s;
        }

        .field-input::placeholder { color: #2a3a4a; }

        .field-input:focus {
            border-color: rgba(0, 245, 255, 0.45);
            box-shadow: 0 0 0 3px rgba(0, 245, 255, 0.08), 0 0 20px rgba(0, 245, 255, 0.08);
        }

        .field-error {
            margin-top: 6px;
            font-size: 12px;
            color: #ff4466;
            font-family: 'Space Mono', monospace;
        }

        .auth-footer {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-top: 28px;
            padding-top: 24px;
            border-top: 1px solid rgba(0, 245, 255, 0.08);
        }

        .auth-link {
            font-size: 13px;
            color: #5a7a9a;
            text-decoration: none;
            font-family: 'Space Mono', monospace;
            transition: color 0.2s;
        }

        .auth-link:hover { color: #00f5ff; }

        .btn-submit {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 13px 28px;
            background: linear-gradient(135deg, #0066ff, #00f5ff);
            border: none;
            border-radius: 10px;
            color: #000;
            font-family: 'Syne', sans-serif;
            font-size: 14px;
            font-weight: 700;
            cursor: pointer;
            letter-spacing: 0.02em;
            box-shadow: 0 0 30px rgba(0,245,255,0.25);
            transition: all 0.25s;
        }

        .btn-submit:hover {
            transform: translateY(-1px);
            box-shadow: 0 0 44px rgba(0,245,255,0.4);
        }

        .status-msg {
            margin-bottom: 20px;
            padding: 12px 16px;
            background: rgba(0,245,255,0.06);
            border: 1px solid rgba(0,245,255,0.2);
            border-radius: 8px;
            font-size: 13px;
            color: #00f5ff;
            font-family: 'Space Mono', monospace;
        }
    </style>

    <h1 class="auth-heading">Crear cuenta</h1>
    <p class="auth-subheading">Únete y empieza a construir.</p>

    <form method="POST" action="{{ route('register') }}">
        @csrf

        <!-- Name -->
        <div class="field-group">
            <label for="name" class="field-label">Nombre</label>
            <input id="name" class="field-input" type="text" name="name"
                   value="{{ old('name') }}" required autofocus autocomplete="name"
                   placeholder="Tu nombre completo" />
            @error('name')
                <p class="field-error">{{ $message }}</p>
            @enderror
        </div>

        <!-- Email -->
        <div class="field-group">
            <label for="email" class="field-label">Correo electrónico</label>
            <input id="email" class="field-input" type="email" name="email"
                   value="{{ old('email') }}" required autocomplete="username"
                   placeholder="tu@email.com" />
            @error('email')
                <p class="field-error">{{ $message }}</p>
            @enderror
        </div>

        <!-- Password -->
        <div class="field-group">
            <label for="password" class="field-label">Contraseña</label>
            <input id="password" class="field-input" type="password" name="password"
                   required autocomplete="new-password"
                   placeholder="••••••••" />
            @error('password')
                <p class="field-error">{{ $message }}</p>
            @enderror
        </div>

        <!-- Confirm Password -->
        <div class="field-group">
            <label for="password_confirmation" class="field-label">Confirmar contraseña</label>
            <input id="password_confirmation" class="field-input" type="password"
                   name="password_confirmation" required autocomplete="new-password"
                   placeholder="••••••••" />
            @error('password_confirmation')
                <p class="field-error">{{ $message }}</p>
            @enderror
        </div>

        <div class="auth-footer">
            <a href="{{ route('login') }}" class="auth-link">
                ¿Ya tienes cuenta?
            </a>
            <button type="submit" class="btn-submit">
                Registrarse
                <svg width="14" height="14" viewBox="0 0 14 14" fill="none">
                    <path d="M2 7h10M7 3l4 4-4 4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
                </svg>
            </button>
        </div>
    </form>
</x-guest-layout>